allow use of xos-config.py when xos not installed in /opt/xos
diff --git a/xos/tools/xos-config.py b/xos/tools/xos-config.py
index 0fd83d3..67ca4f6 100755
--- a/xos/tools/xos-config.py
+++ b/xos/tools/xos-config.py
@@ -1,6 +1,12 @@
 #!/usr/bin/env python
 import sys
-sys.path.append("/opt/xos")
+
+# add the parent directory to sys.path
+import os,sys,inspect
+currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
+parentdir = os.path.dirname(currentdir)
+sys.path.append(parentdir)
+
 from xos.config import Config
 
 def help():