summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/wic12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/wic b/scripts/wic
index 425b665861..a7221c3610 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -31,11 +31,23 @@
31 31
32__version__ = "0.1.0" 32__version__ = "0.1.0"
33 33
34# Python Standard Library modules
34import os 35import os
35import sys 36import sys
36import optparse 37import optparse
37import logging 38import logging
38 39
40# External modules
41try:
42 import rpm
43 import urlgrabber
44except ImportError:
45 print("ERROR: failed to import necessary modules.")
46 print("Please ensure the following modules are installed:")
47 print("\trpm");
48 print("\turlgrabber");
49 sys.exit(1)
50
39scripts_path = os.path.abspath(os.path.dirname(os.path.abspath(sys.argv[0]))) 51scripts_path = os.path.abspath(os.path.dirname(os.path.abspath(sys.argv[0])))
40lib_path = scripts_path + '/lib' 52lib_path = scripts_path + '/lib'
41sys.path = sys.path + [lib_path] 53sys.path = sys.path + [lib_path]