We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac181b commit 2edcb01Copy full SHA for 2edcb01
py_config.py
@@ -2,16 +2,21 @@
2
3
class Config:
4
def __init__(self):
5
+ current_dir = os.path.dirname(os.path.abspath(__file__))
6
+ src_dir = os.path.join(current_dir, "src")
7
+
8
directories = [
- './src',
- './src/utils',
- './src/decryption',
9
+ src_dir,
10
+ os.path.join(src_dir, "utils"),
11
+ os.path.join(src_dir, "decryption"),
12
]
13
14
for directory in directories:
15
os.makedirs(directory, exist_ok=True)
16
init_file = os.path.join(directory, '__init__.py')
17
if not os.path.exists(init_file):
18
with open(init_file, 'w') as f:
19
f.write('# Package initialization\n')
- print(f"Created: {init_file}")
- else: print(f"Already exists: {init_file}")
20
21
+if __name__ == "__main__":
22
+ Config()
0 commit comments