After numerous problems with Tkinter and Pyinstaller, I was finally able to make a Unix executable application work normally on the MAC High Sierra. But inside the folder of my application, there is a folder called script, which I use chdir(os.getcdw()+'/scritp')
to open it.
The problem is precisely in the use of the Mac OS executable made with pyinstaller. When I click on such an executable, it understands that os.getcdw()
is just the user's folder. It does not take the folder where the executable file is.
For example, instead of os.getcdw()
is equal to "/Users/isaacvictor/Desktop/scriexe"
it returns "/Users/isaacvictor"
How do I solve this problem? I want to get the executable file folder.
Many thanks to all who contribute.