This program will have to run without prompting for anything. So you'll want a configuration file. Then whoever installs the system will just edit these files.
The easiest way to do this to add a python module for configuration: config.py.
The problem (as you have discovered) is that this file contains information that we don't want stored in our repository. So store a file called config-example.py with sample and default definitions (like the example above), and then add instructions in README.md to copy this file to config.py and update config.py with appropriate values. Now you can tell git to ignore config.py while keeping config-example.py, by adding the following to a .gitignore file:
config.py
To use these values in your program, just import config and use the values.
This program will have to run without prompting for anything. So you'll want a configuration file. Then whoever installs the system will just edit these files.
The easiest way to do this to add a python module for configuration:
config.py
.The problem (as you have discovered) is that this file contains information that we don't want stored in our repository. So store a file called config-example.py with sample and default definitions (like the example above), and then add instructions in README.md to copy this file to config.py and update config.py with appropriate values. Now you can tell git to ignore config.py while keeping config-example.py, by adding the following to a
.gitignore
file:To use these values in your program, just
import config
and use the values.