Skip to content

Commit b788f6f

Browse files
authored
Fix temp directory creation
Fixed a bug related to the creation of the PyASCII/temp/ directory, which was not being created during the first execution, resulting in an error.
1 parent b415dce commit b788f6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PyASCII.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
import argparse
1313
import tomllib
1414

15+
if (not os.path.exists('PyASCII/output')):
16+
os.makedirs('PyASCII/output')
1517
if (not os.path.exists('PyASCII/temp')):
1618
os.makedirs('PyASCII/temp')
17-
elif (not os.path.exists('PyASCII/output')):
18-
os.makedirs('PyASCII/output')
1919
else:
2020
for file in os.listdir("PyASCII/temp"):
2121
file_path = os.path.join("PyASCII/temp", file)

0 commit comments

Comments
 (0)