We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eab027 commit 2e62ec8Copy full SHA for 2e62ec8
examples/configloader.py
@@ -32,13 +32,13 @@ def which_path():
32
33
def create_config(path):
34
cwd = os.getcwd()
35
- shutil.copyfile(f"{cwd}/example-config.yaml", path)
+ shutil.copyfile(path, syspath)
36
print(f"New config file created, edit config file at: {path}")
37
38
def load_config(path):
39
40
if not os.path.exists(syspath):
41
- create_config(syspath)
+ create_config(path)
42
43
with open(f"{syspath}", 'r') as stream:
44
try:
0 commit comments