summaryrefslogtreecommitdiffstats
path: root/command-stubs
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-08-16 06:07:59 +0000
committerMike Fulbright <msf@redhat.com>2002-08-16 06:07:59 +0000
commit8d6b9da045e92fc2601263550c91853846f6a06f (patch)
tree6f558f846d40361612ede204a57e893e029ffa77 /command-stubs
parent8c5fd6da41bbda53514591782bd103165ab1a789 (diff)
downloadanaconda-8d6b9da045e92fc2601263550c91853846f6a06f.tar.gz
anaconda-8d6b9da045e92fc2601263550c91853846f6a06f.tar.xz
anaconda-8d6b9da045e92fc2601263550c91853846f6a06f.zip
get python paths right
Diffstat (limited to 'command-stubs')
-rwxr-xr-xcommand-stubs/list-harddrives-stub10
1 files changed, 9 insertions, 1 deletions
diff --git a/command-stubs/list-harddrives-stub b/command-stubs/list-harddrives-stub
index cd53689f7..7897967a1 100755
--- a/command-stubs/list-harddrives-stub
+++ b/command-stubs/list-harddrives-stub
@@ -3,10 +3,18 @@
# scan system for harddrives and output device name/size
#
+import os
+import sys
+
+# for testing
+if (os.path.exists('isys')):
+ sys.path.append('isys')
+
+sys.path.append('/usr/lib/anaconda')
+
import parted
import partedUtils
import isys
-import os
drives = isys.hardDriveDict()