diff options
author | Erik Troan <ewt@redhat.com> | 1999-09-08 01:21:57 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-09-08 01:21:57 +0000 |
commit | 439ca96218257524676f84b22fcfa4b65f95b6d4 (patch) | |
tree | 4f5abdbb9f885d76189966bf97d9c1686750964a /anaconda | |
parent | 9932bdbafde50da2e9a21e3ff7c6a95c5356abbf (diff) | |
download | anaconda-439ca96218257524676f84b22fcfa4b65f95b6d4.tar.gz anaconda-439ca96218257524676f84b22fcfa4b65f95b6d4.tar.xz anaconda-439ca96218257524676f84b22fcfa4b65f95b6d4.zip |
use argument parsing code from popt
Diffstat (limited to 'anaconda')
-rwxr-xr-x | anaconda | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,21 +1,28 @@ #!/usr/bin/python -import sys, getopt, os +import sys, os import gettext import traceback import string +if (os.path.exists('isys')): + sys.path.append('isys') + +import isys + setverPath = None gettext.bindtextdomain("anaconda", "/usr/share/locale") gettext.textdomain("anaconda") _ = gettext.gettext -(args, extra) = getopt.getopt(sys.argv[1:], 'GTtdr:fm:', +(args, extra) = isys.getOpt(sys.argv[1:], 'GTtdr:fm:', [ 'gui', 'text', 'test', 'debug', 'method=', 'rootpath=', 'testpath=', 'mountfs', 'traceonly', 'kickstart=', 'expert']) +print "got args", args + # remove the arguments - gnome_init doesn't understand them for arg in sys.argv[1:]: sys.argv.remove (arg) @@ -74,7 +81,6 @@ if (not test and not localInstall and os.getpid() > 50): if (os.path.exists('rpmmodule')): sys.path.append('rpmmodule') - sys.path.append('isys') sys.path.append('libfdisk') sys.path.append('balkan') sys.path.append('kudzu') |