diff options
Diffstat (limited to 'src/com.gluster.storage.management.gateway/WebContent/scripts/grun.py')
-rwxr-xr-x | src/com.gluster.storage.management.gateway/WebContent/scripts/grun.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com.gluster.storage.management.gateway/WebContent/scripts/grun.py b/src/com.gluster.storage.management.gateway/WebContent/scripts/grun.py index ae93b7f2..97ac2cbb 100755 --- a/src/com.gluster.storage.management.gateway/WebContent/scripts/grun.py +++ b/src/com.gluster.storage.management.gateway/WebContent/scripts/grun.py @@ -5,6 +5,12 @@ import os import sys +p1 = os.path.abspath(os.path.dirname(sys.argv[0])) +p2 = "%s/common" % os.path.dirname(p1) +if not p1 in sys.path: + sys.path.append(p1) +if not p2 in sys.path: + sys.path.append(p2) import Utils |