Running pycentral by hand: Python 2.4.3 (#2, Aug 25 2006, 17:37:59) [GCC 4.1.2 20060817 (prerelease) (Ubuntu 4.1.1-11ubuntu1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import fnmatch, glob, os, re, sys, time >>> from optparse import OptionParser >>> >>> sys.path[0:0] = ['/usr/share/python', '/usr/share/pycentral-data'] >>> import pyversions >>> >>> try: ... SetType = set ... except NameError: ... import sets ... >>> program = os.path.basename(sys.argv[0]) >>> >>> print program
>>> shared_base = '/usr/share/pycentral/' >>> req_pycentral_version = '0.5' >>> program=pycentral #this was get from a print in pycentral >>> shared_base = '/usr/share/pycentral/' >>> req_pycentral_version = '0.5' The first line of main(), call parse_options() so I will simulate it: >>> args = ['rtinstall', '/usr/bin/python2.3'] #from a print in pycentral >>> global_options={'help': None, 'verbose': None} #from a print in pycentral >>> print global_options {'help': None, 'verbose': None} >>> args=['rtinstall', '/usr/bin/python2.3'] #from a print in pycentral >>> action_name = args[0] >>> print action_name rtinstall >>> del args[0] #line 1248 >>> matching_actions=['rtinstall'] #from a print in pycentral >>> action_name = matching_actions[0] >>> print action_name rtinstall printing action after line 1260 gives: <__main__.ActionRuntimeInstall instance at 0xa7d744cc> Then, after some testing main() call action.check_args(). -- python2.3 not installable https://launchpad.net/bugs/58062 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs