diff options
| author | David Kaprielian <sabin@lindenlab.com> | 2009-05-21 13:54:35 -0700 | 
|---|---|---|
| committer | David Kaprielian <sabin@lindenlab.com> | 2009-05-21 13:54:35 -0700 | 
| commit | 5748a14f5d7e85230e74c330a7c2b058856be9cd (patch) | |
| tree | 5ac7529e15fe9f08c5d199aff08376f10dbc9a36 | |
| parent | 12508ac9b13e7fb70f78210c42030bf44a5efd0f (diff) | |
os.putenv doesn't do what we want, replaced with os.environ instead.
| -rwxr-xr-x | indra/develop.py | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/develop.py b/indra/develop.py index f670c66639..1398bca935 100755 --- a/indra/develop.py +++ b/indra/develop.py @@ -385,7 +385,7 @@ class LinuxSetup(UnixSetup):              distcc_dir = os.path.join(getcwd(), '.distcc')              if not os.path.exists(distcc_dir):                  os.mkdir(distcc_dir) -            os.putenv('DISTCC_DIR', distcc_dir) +            os.environ['DISTCC_DIR'] = distcc_dir          if job_count is None:              hosts, job_count = count_distcc_hosts() @@ -393,10 +393,10 @@ class LinuxSetup(UnixSetup):                  hostname = socket.gethostname()                  if hostname.startswith('station'):                      hosts, job_count = mk_distcc_hosts('station', 36, 2) -                    os.putenv('DISTCC_HOSTS', hosts) +                    os.environ['DISTCC_HOSTS'] = hosts                  if hostname.startswith('eniac'):                      hosts, job_count = mk_distcc_hosts('eniac', 71, 2) -                    os.putenv('DISTCC_HOSTS', hosts) +                    os.environ['DISTCC_HOSTS'] = hosts              if job_count > 12:                  job_count = 12;              opts.extend(['-j', str(job_count)])  | 
