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
Show parent comment
1
u/LNXByte 10h ago
to make sure this works add usr/local/bin to your paths
if you're on a non-intel based mac you may have to run:
sudo mkdir -p /usr/local/bin
this program will run in 5 seconds
name WITHOUT file extension testMain
What language did you code your program in? python
What is the path to your project? .
What do you want to name your command testMkcmd
Do you have a shebang line at the top? (if not thats fine theres no need to add it) yes
it freezes here and then i was getting some error messages (which i cant find due to the freezing) about my shebang and extension vars