I know that all you really need to execute a python program is the python interpriter, what what if your program uses config files that might be in /etc, ~/.program, or C:\users\Name\Appdata ? How would you go about creating an installer for you python program and all of it's files and assets? Secondly, if you want your program to work with Linux and Windows would you use a one smart insaller or a different installers for each version? Thanks.
Jump to Post
For the path problem:
1. Use relative paths when you can.
2. Detect the platform an decide on where you should look for the config files.
3. Use os.path.expanduser to find the users home directory and write the config there.
4. Use the installer to your advantage, and let the …
All 3 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.