Commits

Anonymous committed bc62935

Subprocesses can't use source option yet. Better way to find site-packages.

Comments (0)

Files changed (2)

                                             random.randint(0, 999999))
 
                 # Activate coverage for this process.
-                cov = coverage.coverage(source=cov_source,
+                cov = coverage.coverage(#source=cov_source,
                                         data_file=cov_data_file,
                                         data_suffix=data_suffix,
                                         config_file=cov_config,
 
 if sys.argv[1] in ('install', 'develop'):
     for path in sys.path:
-        if ('site-packages' in path) or ('dist-packages' in path and 'local' in path):
+        if (path.endswith('site-packages')) or (path.endswith('dist-packages') and 'local' in path):
             path = os.path.join(path, PTH_FILE_NAME)
             pth_file = open(path, 'w')
             pth_file.write(PTH_FILE)