Skip to content

Commit 2e62ec8

Browse files
author
Jonathan Lutterbeck
committed
Fixed Test
Fixed copyfile for test case
1 parent 3eab027 commit 2e62ec8

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,13 +32,13 @@ def which_path():
3232

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

3838
def load_config(path):
3939

4040
if not os.path.exists(syspath):
41-
create_config(syspath)
41+
create_config(path)
4242

4343
with open(f"{syspath}", 'r') as stream:
4444
try:

0 commit comments

Comments
 (0)