I&#39;m attempting to set up coverage to run for *any* python process that runs on a specific server.<div><br></div><div>currently I have the following in sitecustomize.py</div><div><br></div><div><div>import os</div><div>
os.environ[&#39;COVERAGE_PROCESS_START&#39;]=&#39;/home/dlee/.coveragerc&#39;</div><div>import sys</div><div>sys.path.append(&#39;/home/dlee/downloads/python/coverage-3.5.1/&#39;)</div><div>import coverage</div><div>coverage.process_startup()</div>
<div><br></div><div><br></div><div>The problem is that some of the processes run as root and some run as particular users.  This was causing the non-root processes to fail due to the fact that they couldn&#39;t write to the .coverage file.</div>
<div><br></div><div>Is there some way to automagically open up .coverage to be writable by anything?  (Does coverage manage perms at all or should I just do this with umask maybe?  (I don&#39;t want to mess with this and change how particular programs behave))</div>
<div><br></div><div>Is there some easy way to have each process write to a different file so they don&#39;t stomp on each other?  I see there is a  --parallel-mode switch but is there a way to set this up automatically?  My goal is to have ALL processes run coverage.py nolens volens.</div>
<div><br></div><div>thanks,</div><div><br></div><div>dustin</div><div> </div><div><br></div>-- <br>Dustin Lee<br>qhfgva=rot13(dustin)<br>
</div>