diff options
Diffstat (limited to 'bitbake/lib/toaster/toastermain/settings.py')
-rw-r--r-- | bitbake/lib/toaster/toastermain/settings.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py index 8de3b52f34..0974b90525 100644 --- a/bitbake/lib/toaster/toastermain/settings.py +++ b/bitbake/lib/toaster/toastermain/settings.py | |||
@@ -264,6 +264,10 @@ import os | |||
264 | currentdir = os.path.dirname(__file__) | 264 | currentdir = os.path.dirname(__file__) |
265 | for t in os.walk(os.path.dirname(currentdir)): | 265 | for t in os.walk(os.path.dirname(currentdir)): |
266 | modulename = os.path.basename(t[0]) | 266 | modulename = os.path.basename(t[0]) |
267 | #if we have a virtualenv skip it to avoid incorrect imports | ||
268 | if os.environ.has_key('VIRTUAL_ENV') and os.environ['VIRTUAL_ENV'] in t[0]: | ||
269 | continue | ||
270 | |||
267 | if ("views.py" in t[2] or "models.py" in t[2]) and not modulename in INSTALLED_APPS: | 271 | if ("views.py" in t[2] or "models.py" in t[2]) and not modulename in INSTALLED_APPS: |
268 | INSTALLED_APPS = INSTALLED_APPS + (modulename,) | 272 | INSTALLED_APPS = INSTALLED_APPS + (modulename,) |
269 | 273 | ||