r/pythonhelp • u/LNXByte • 11h ago
Test code very broken with os lib
https://github.com/jacobrinaldi/mkcmd/blob/main/tests/testMain.pyI making a tool and i wanted to make it much more lightweight while still being coded in python but this just breaks i was told be some to remove global in my if statements but that didnt help.
0
Upvotes
View all comments
1
u/Educational-Paper-75 7h ago
shebang and extension are local variables and thus unknown in the install function. Either declare them globally as well or pass them in the install function calls as function arguments (to added function parameters).