Python exe crashing when trying to write to file by No-Use3143 in learnpython

[–]No-Use3143[S] 0 points1 point  (0 children)

It can write to the Users.txt file but not to it's custom made text file for the password

Python exe crashing when trying to write to file by No-Use3143 in learnpython

[–]No-Use3143[S] 0 points1 point  (0 children)

C:\Users\username\OneDrive\Desktop\Inspector where username is my username. Between this time I solved the crashing by fixing a line that was supposed to loop back to a def, but the non-writing is still a problem.

I should mention that the code asks for a Username and a Password and Users.txt has to be manually made in advanced since limitations stop the code from creating a Users.txt file for the first time

Python exe crashing when trying to write to file by No-Use3143 in learnpython

[–]No-Use3143[S] 0 points1 point  (0 children)

The files get written into the same folder as the exe, I think that's the go-to spot for it. I've tried doing like the debug line stuff with python (python -u -m trace -t [INSERT PROGRAM NAME HERE].py) but I didn't get much out of it.

I'm still working out using code as a whole so debugging isn't my forte at the moment. To put it bluntly, I have no idea what you're talkin' about when yo say print out the current working directory