summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2011-04-20 12:56:44 -0500
committerJosh Kearney <josh@jk0.org>2011-04-20 12:56:44 -0500
commit8b2ac745211a567b7c05e31343ada3ef4be85eb4 (patch)
tree37447a3634ae14bae933dbda8c5a6bc8f565b071
parent584cde68aa36c35c03c29eb4bb09ede5f8c4074e (diff)
downloadnova-8b2ac745211a567b7c05e31343ada3ef4be85eb4.tar.gz
nova-8b2ac745211a567b7c05e31343ada3ef4be85eb4.tar.xz
nova-8b2ac745211a567b7c05e31343ada3ef4be85eb4.zip
Pylinted nova-compute.
-rwxr-xr-xbin/nova-compute6
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)