Ignore __main__ modules

This commit is contained in:
Dave Halter
2017-12-11 09:23:13 +01:00
parent 3a7bc92863
commit fa2712a128
3 changed files with 13 additions and 7 deletions
+5 -5
View File
@@ -12,12 +12,12 @@ class Project(object):
if sys_path is not None:
self._base_sys_path = sys_path
venv = os.getenv('VIRTUAL_ENV')
if venv:
sys_path = get_venv_path(venv)
if sys_path is None:
sys_path = sys.path
venv = os.getenv('VIRTUAL_ENV')
if venv:
sys_path = get_venv_path(venv)
else:
sys_path = sys.path
base_sys_path = list(sys_path)
try: