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.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastermain/urls.py b/bitbake/lib/toaster/toastermain/urls.py
index 1ae6245cc3..549fda12d6 100644
--- a/bitbake/lib/toaster/toastermain/urls.py
+++ b/bitbake/lib/toaster/toastermain/urls.py
@@ -55,6 +55,10 @@ if toastermain.settings.MANAGED:
55import os 55import os
56currentdir = os.path.dirname(__file__) 56currentdir = os.path.dirname(__file__)
57for t in os.walk(os.path.dirname(currentdir)): 57for t in os.walk(os.path.dirname(currentdir)):
58 #if we have a virtualenv skip it to avoid incorrect imports
59 if os.environ.has_key('VIRTUAL_ENV') and os.environ['VIRTUAL_ENV'] in t[0]:
60 continue
61
58 if "urls.py" in t[2] and t[0] != currentdir: 62 if "urls.py" in t[2] and t[0] != currentdir:
59 modulename = os.path.basename(t[0]) 63 modulename = os.path.basename(t[0])
60 urlpatterns.append( url(r'^' + modulename + '/', include ( modulename + '.urls'))) 64 urlpatterns.append( url(r'^' + modulename + '/', include ( modulename + '.urls')))