diff options
| author | Kei Masumoto <masumotok@nttdata.co.jp> | 2011-05-25 17:03:14 +0900 |
|---|---|---|
| committer | Kei Masumoto <masumotok@nttdata.co.jp> | 2011-05-25 17:03:14 +0900 |
| commit | 2adf37233cb1b145bcb95e20bec53ea186558265 (patch) | |
| tree | 4d8f3f8d05b1be95eab804147efb67b712c7263e /bin/nova-compute | |
| parent | 8c66d79a41044837a0865b1a706dd89e788597d1 (diff) | |
| parent | 02b97593d0b3ee60ab879e5184be742ef3ac1b64 (diff) | |
merged recent trunk
Diffstat (limited to 'bin/nova-compute')
| -rwxr-xr-x | bin/nova-compute | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/nova-compute b/bin/nova-compute index 95fa393b1..cd7c78def 100755 --- a/bin/nova-compute +++ b/bin/nova-compute @@ -28,11 +28,11 @@ import sys # If ../nova/__init__.py exists, add ../ to Python search path, so that # it will override what happens to be installed in /usr/(local/)lib/python... -possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]), +POSSIBLE_TOPDIR = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]), os.pardir, os.pardir)) -if os.path.exists(os.path.join(possible_topdir, 'nova', '__init__.py')): - sys.path.insert(0, possible_topdir) +if os.path.exists(os.path.join(POSSIBLE_TOPDIR, 'nova', '__init__.py')): + sys.path.insert(0, POSSIBLE_TOPDIR) gettext.install('nova', unicode=1) |
