diff options
author | Bala.FA <bala@gluster.com> | 2011-08-03 14:56:32 +0530 |
---|---|---|
committer | Bala.FA <bala@gluster.com> | 2011-08-03 14:56:32 +0530 |
commit | 6dbbf73befc14da2a794e7233c357691b5f5e982 (patch) | |
tree | 1bcbffd091c31c509e81e462dccf732bb9e05664 /src/com.gluster.storage.management.gateway/WebContent/scripts/grun.py | |
parent | 73644291bb5ea77cbb7d3e351992fea13e1a6be9 (diff) |
Fixed - Bug 3300 - Format_device.py is not working.
Added current and previous/common directories in sys.path.
Flipped DOS to Unix file format in all python scripts.
Signed-off-by: Bala.FA <bala@gluster.com>
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 |