~daker/loco-team-portal/fix.818373

« back to all changes in this revision

Viewing changes to loco_directory/common/utils.py

  • Committer: Tarmac
  • Author(s): Michael Hall
  • Date: 2011-07-19 20:30:49 UTC
  • mfrom: (464.1.4 setup-improvements)
  • Revision ID: tarmac@nigelb.me-20110719203049-wvt8efddnz07r4zp
[r=daker][] Make setting up a loco-directory environment easier

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
       datetime.datetime.utcfromtimestamp(os.path.getmtime(stamp_file)) + interval < datetime.datetime.now():
25
25
        pwd = os.getcwd()
26
26
        os.chdir(settings.PROJECT_PATH)
27
 
        p = subprocess.Popen(["./manage.py", which], stdout=subprocess.PIPE, 
 
27
        p = subprocess.Popen(["python", "manage.py", which], stdout=subprocess.PIPE, 
28
28
                             stderr=subprocess.STDOUT, close_fds=True)
29
29
        log = p.stdout.read()
30
30
        p.communicate()