Adding Command Line Arguments to Python Twisted -
i still new python keep in mind when reading this. i have been hacking away @ existing python script "put" few different people. the script designed load it's 'configuration' using module named "conf/config.py" python code. setting_name='setting value' i've modified instead read it's settings configuration file using configparser: import configparser config_file_parser = configparser.configparser() config_file_name = "/etc/service_settings.conf" config_file_parser.readfp(open(r'' + config_file_name)) setting_name = config_file_parser.get('basic', 'setting_name') the problem having how specify configuration file use. have managed working (somewhat) having multiple tac files , setting "config_file_name" variable there using module hold variable value. example, have module 'conf/configloader.py": global config_file_name then tac file has: import conf.configloader