Relative Content

Tag Archive for macos

Saving files in MacOS

I develop an app in Python in MacOS. The app sometimes saves a file. The app has the writing permissions. When I run the code from the IDE, it works ok and saves the file. When I create an executable file (I use pyinstaller) and run it from the Terminal, it runs ok and saves the file. When I copy the executable to the Application folder, it runs ok, but fails to save the file. How can I fix it?

Saving files in MacOS

I develop an app in Python in MacOS. The app sometimes saves a file. The app has the writing permissions. When I run the code from the IDE, it works ok and saves the file. When I create an executable file (I use pyinstaller) and run it from the Terminal, it runs ok and saves the file. When I copy the executable to the Application folder, it runs ok, but fails to save the file. How can I fix it?