File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,12 @@ def confirmation_prompt(program_name: str):
36
36
37
37
38
38
if __name__ == '__main__' :
39
+ os .chdir (os .pardir )
40
+
39
41
while True :
40
42
clear_terminal ()
41
- dirs = ["../" ] + glob ("*/" )
42
- scripts = glob (" *.py" )
43
+ dirs = [os . pardir + '/' ] + glob ('*/' )
44
+ scripts = glob (' *.py' )
43
45
if os .getcwd () == PYNX_DIR_PATH and MAIN_PY in scripts :
44
46
scripts .remove (MAIN_PY )
45
47
for _dir in dirs :
@@ -52,7 +54,7 @@ def confirmation_prompt(program_name: str):
52
54
clear_terminal ()
53
55
if selected in dirs :
54
56
os .chdir (selected )
55
- if os .path .isfile (MAIN_PY ) and not selected == '.. /' and not os .getcwd () == PYNX_DIR_PATH :
57
+ if os .path .isfile (MAIN_PY ) and not selected == os . pardir + ' /' and not os .getcwd () == PYNX_DIR_PATH :
56
58
response = confirmation_prompt (selected )
57
59
clear_terminal ()
58
60
if response is True :
You can’t perform that action at this time.
0 commit comments