r/pythonhelp • • 11h ago

Test code very broken with os lib

https://github.com/jacobrinaldi/mkcmd/blob/main/tests/testMain.py

I 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

5 comments sorted by

View all comments

1

u/atarivcs 11h ago

"this just breaks" is not a good description of the problem.

Please show us the exact error or incorrect result you are getting.

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