remove debug messages

This commit is contained in:
Bela 2018-11-02 18:15:57 +01:00
parent 1e8eaea393
commit 72b5295cd9

View file

@ -52,7 +52,7 @@ def readFormFileDirectoriesFromConfig():
"in config file reading.")
return formdir
except FileNotFoundError:
print("Debug: no config file found.")
print("No config file found.")
return None
@ -104,7 +104,8 @@ def copyFile(copyfile, where):
copy + ". Use another place.")
raise pe
else:
print("Debug: copied the file " + copy)
pass
# print("Debug: copied the file " + copy)
def mkdir(where):
@ -114,7 +115,7 @@ def mkdir(where):
PermissionsError: if not allowed.
"""
print("Debug: directory:", where)
# print("Debug: directory:", where)
try:
os.makedirs(where)
except FileExistsError:
@ -138,7 +139,7 @@ if __name__ == "__main__":
"to the file " + CONFIGFILE + ".")
else:
tocopy = filesToCopy(formdirectory)
print("Debug:", tocopy)
# print("Debug:", tocopy)
mkdir(directory)
for copy in tocopy:
copyFile(copy, directory)