10
1
mirror of https://github.com/pfloos/quack synced 2024-12-22 12:23:42 +01:00

create input dir

This commit is contained in:
Abdallah Ammar 2024-11-15 19:13:05 +01:00
parent c2dfed3f29
commit 35d0df0eba

View File

@ -210,9 +210,11 @@ def main():
work_path.mkdir(parents=True, exist_ok=True) work_path.mkdir(parents=True, exist_ok=True)
print(f"Directory '{work_path}' created.\n") print(f"Directory '{work_path}' created.\n")
# to save QuAcK output # for I/O
if not os.path.exists("{}/test".format(work_path)): if not os.path.exists("{}/test".format(work_path)):
os.makedirs("{}/test".format(work_path)) os.makedirs("{}/test".format(work_path))
if not os.path.exists("{}/input".format(work_path)):
os.makedirs("{}/input".format(work_path))
test_failed = False test_failed = False
for mol in molecules: for mol in molecules: