summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Albert <albertj@us.ibm.com>2015-03-09 14:37:25 -0500
committerJason Albert <albertj@us.ibm.com>2015-03-09 14:37:25 -0500
commitdd1f5ae898a9eda8ac75f9416197478fccc6ff55 (patch)
tree26f64b2e933d1959e4bd372f39e97380c39c5a16
parentfa9120f082f511797a31adf6a0e0b0fb20fde834 (diff)
downloadvpdtools-dd1f5ae898a9eda8ac75f9416197478fccc6ff55.tar.gz
vpdtools-dd1f5ae898a9eda8ac75f9416197478fccc6ff55.zip
Fix to allow the script to be called from outside the containing directory
-rwxr-xr-xcreateVpd.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/createVpd.py b/createVpd.py
index 13e2d05..20e359f 100755
--- a/createVpd.py
+++ b/createVpd.py
@@ -5,11 +5,13 @@
############################################################
# Imports - Imports - Imports - Imports - Imports - Imports
############################################################
+import os
+# Get the path the script resides in
+scriptPath = os.path.dirname(os.path.realpath(__file__))
import sys
-sys.path.insert(0,"pymod");
+sys.path.insert(0,scriptPath + "/pymod");
import cmdline
import out
-import os
import xml.etree.ElementTree as ET
import struct
import re
OpenPOWER on IntegriCloud