Revision: 5607 Author: leogregianin Date: 2008-06-23 01:35:30 +0000 (Mon, 23 Jun 2008)
Log Message: ----------- create __main__
Modified Paths: -------------- trunk/pywikipedia/generate_user_files.py
Modified: trunk/pywikipedia/generate_user_files.py =================================================================== --- trunk/pywikipedia/generate_user_files.py 2008-06-23 00:56:18 UTC (rev 5606) +++ trunk/pywikipedia/generate_user_files.py 2008-06-23 01:35:30 UTC (rev 5607) @@ -115,6 +115,17 @@ f.close() print "'%s' written." % _fnf
- -create_user_config() -create_user_fixes() \ No newline at end of file +if __name__ == "__main__": + print "1: Create user_config.py file" + print "2: Create user_fixes.py file" + print "3: The two files" + choice = raw_input(u"What do you do? ") + if choice == "1": + create_user_config() + if choice == "2": + create_user_fixes() + if choice == "3": + create_user_config() + create_user_fixes() + if not choice in ["1", "2", "3"]: + print "Nothing to do"