egoexpress / innoxmpp

Python XMPP admin 'bots' based on the SleekXMPP library
2 stars 1 forks source link

Add command line option to provide alternate config file #5

Closed egoexpress closed 11 years ago

egoexpress commented 12 years ago

Currently the location of the config file is hardcoded (config/innoxmpp.ini). There should be a command line switch to provide a config file from an alternate location, e.g. for testing purposes.

egoexpress commented 12 years ago

Seems argparse is the way to go in Python 3.2 and beyond.

Actually, the tutorial is much more understandable than the API description. sigh

egoexpress commented 12 years ago

Created botrunner branch to implement this option.

egoexpress commented 11 years ago

botrunner branch merged into master. Now it's possibe to provide an alternate config file using '--config'. Implemented in GenericBot.py.