summaryrefslogtreecommitdiffstats
path: root/command-stubs/list-harddrives-stub
diff options
context:
space:
mode:
Diffstat (limited to 'command-stubs/list-harddrives-stub')
-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()