summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastermain/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastermain/urls.py')
-rw-r--r--bitbake/lib/toaster/toastermain/urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastermain/urls.py b/bitbake/lib/toaster/toastermain/urls.py
index 530a42ffab..1f8599edc3 100644
--- a/bitbake/lib/toaster/toastermain/urls.py
+++ b/bitbake/lib/toaster/toastermain/urls.py
@@ -71,7 +71,7 @@ import os
71currentdir = os.path.dirname(__file__) 71currentdir = os.path.dirname(__file__)
72for t in os.walk(os.path.dirname(currentdir)): 72for t in os.walk(os.path.dirname(currentdir)):
73 #if we have a virtualenv skip it to avoid incorrect imports 73 #if we have a virtualenv skip it to avoid incorrect imports
74 if os.environ.has_key('VIRTUAL_ENV') and os.environ['VIRTUAL_ENV'] in t[0]: 74 if 'VIRTUAL_ENV' in os.environ and os.environ['VIRTUAL_ENV'] in t[0]:
75 continue 75 continue
76 76
77 if "urls.py" in t[2] and t[0] != currentdir: 77 if "urls.py" in t[2] and t[0] != currentdir: