Skip to content

Commit d7d1915

Browse files
author
Jonathan Lutterbeck
committed
Fixed error
The function was copying the file to the wrong location
1 parent 415112c commit d7d1915

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/configloader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def which_path():
3232

3333
def create_config(path):
3434
cwd = os.getcwd()
35-
shutil.copyfile(f"{cwd}/config.yaml", path)
36-
print(f"New config file created, edit config file at: {path}")
35+
shutil.copyfile(f"{cwd}/config.yaml", syspath)
36+
print(f"New config file created, edit config file at: {syspath}")
3737

3838
def load_config(path):
3939
syspath = which_path() + "/config.yaml"

0 commit comments

Comments
 (0)