summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-09-08 01:21:57 +0000
committerErik Troan <ewt@redhat.com>1999-09-08 01:21:57 +0000
commit439ca96218257524676f84b22fcfa4b65f95b6d4 (patch)
tree4f5abdbb9f885d76189966bf97d9c1686750964a /anaconda
parent9932bdbafde50da2e9a21e3ff7c6a95c5356abbf (diff)
downloadanaconda-439ca96218257524676f84b22fcfa4b65f95b6d4.tar.gz
anaconda-439ca96218257524676f84b22fcfa4b65f95b6d4.tar.xz
anaconda-439ca96218257524676f84b22fcfa4b65f95b6d4.zip
use argument parsing code from popt
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda12
1 files changed, 9 insertions, 3 deletions
diff --git a/anaconda b/anaconda
index 5e3d95a01..ab1f1727e 100755
--- a/anaconda
+++ b/anaconda
@@ -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')