Fix avoid write null logs

This commit is contained in:
Dimitris Zlatanidis 2015-07-26 02:06:14 +03:00
parent f33776e06b
commit 928e1ec237

View file

@ -41,6 +41,7 @@ def write_deps(deps_dict):
os.mkdir(dep_path) os.mkdir(dep_path)
if os.path.isfile(dep_path + name): if os.path.isfile(dep_path + name):
os.remove(dep_path + name) os.remove(dep_path + name)
if len(dependencies) >= 1:
with open(dep_path + name, "w") as f: with open(dep_path + name, "w") as f:
for dep in dependencies: for dep in dependencies:
f.write(dep + "\n") f.write(dep + "\n")