File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ def add_config(fpath):
49
49
poetry_example_configuration = os .path .join (
50
50
os .path .dirname (__file__ ), "../.." , example_configuration
51
51
)
52
- if os .path .exists (poetry_example_configuration ):
52
+ poetry_example_configuration = os .path .normpath (poetry_example_configuration )
53
+ if os .path .isfile (poetry_example_configuration ):
54
+ kci_msg ("here1" )
53
55
config = True
54
56
if not os .path .exists (dpath ) and dpath != "" :
55
57
# copy config
@@ -60,12 +62,14 @@ def add_config(fpath):
60
62
pypi_example_configuration = os .path .join (
61
63
os .path .dirname (__file__ ), ".." , example_configuration
62
64
)
63
- if os .path .exists (pypi_example_configuration ):
65
+ pypi_example_configuration = os .path .normpath (pypi_example_configuration )
66
+ if os .path .isfile (pypi_example_configuration ):
67
+ kci_msg ("here2" )
64
68
config = True
65
69
if not os .path .exists (dpath ) and dpath != "" :
66
70
# copy config
67
71
os .makedirs (dpath )
68
- shutil .copyfile (poetry_example_configuration , fpath )
72
+ shutil .copyfile (pypi_example_configuration , fpath )
69
73
70
74
if not config :
71
75
kci_err (f"No template configfile found at:" )
You can’t perform that action at this time.
0 commit comments