diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2010-10-23 13:24:54 +0200 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2010-10-23 13:30:23 +0200 |
commit | 0bae405bd0a0a4299bf22aff36ff52df3462b311 (patch) | |
tree | ce1ac611ae771b6d4c9641575cb4c319adb9bb7a | |
parent | Explicitely require python2 interpreter (diff) | |
download | gentoo-bumpchecker-0bae405bd0a0a4299bf22aff36ff52df3462b311.tar.gz gentoo-bumpchecker-0bae405bd0a0a4299bf22aff36ff52df3462b311.tar.bz2 gentoo-bumpchecker-0bae405bd0a0a4299bf22aff36ff52df3462b311.zip |
Fix sys.path alteration to allow invocation from any directory
-rwxr-xr-x | gnome-bumpchecker.py | 4 | ||||
-rwxr-xr-x | x-modular-bumpchecker.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gnome-bumpchecker.py b/gnome-bumpchecker.py index 7c2e5b8..66fa102 100755 --- a/gnome-bumpchecker.py +++ b/gnome-bumpchecker.py @@ -5,9 +5,9 @@ import os,sys -exename=os.path.basename(sys.argv[0]) +sys.path.append(os.path.sep.join([os.path.dirname(sys.argv[0]), 'modules'])) + version = "0.0.2" -sys.path = ["modules"]+sys.path if __name__ == '__main__': import clioptions_module diff --git a/x-modular-bumpchecker.py b/x-modular-bumpchecker.py index 68286f5..ab8cd86 100755 --- a/x-modular-bumpchecker.py +++ b/x-modular-bumpchecker.py @@ -7,9 +7,9 @@ import os,sys -exename=os.path.basename(sys.argv[0]) +sys.path.append(os.path.sep.join([os.path.dirname(sys.argv[0]), 'modules'])) + version = "0.0.1" -sys.path = ["modules"]+sys.path if __name__ == '__main__': |