Changeset 12245 in genesis


Ignore:
Timestamp:
Apr 18, 2013, 6:39:47 AM (12 years ago)
Author:
www
Message:

Path to binary needs to be absolute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r12233 r12245  
    3232import os
    3333sys.path.append(os.path.dirname(__file__))
    34 sys.path.append('/usr/local/bin')
     34
     35SVN = '/usr/local/bin/svn'
    3536
    3637import cgi
     
    181182    # Sometimes getting version information is useless or harmfull, like in the pre-commit hooks
    182183    if add_version_info:
    183       p = subprocess.Popen(['svn', 'info', datadump['autogen_gfile']], stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
     184      p = subprocess.Popen([SVN, 'info', datadump['autogen_gfile']], stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
    184185      lines = p.communicate()[0].split('\n')
    185186      if p.returncode == 0:
     
    11581159  if form and form.has_key("action") and "update" in form["action"]:
    11591160    output = "[INFO] Updating subverion, please wait...\n"
    1160     output += subprocess.Popen(['svn', 'cleanup', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0]
    1161     output += subprocess.Popen(['svn', 'up', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0]
     1161    output += subprocess.Popen([SVN, 'cleanup', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0]
     1162    output += subprocess.Popen([SVN, 'up', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0]
    11621163    output += "[INFO] All done, redirecting in 5 seconds"
    11631164    response_headers += [
Note: See TracChangeset for help on using the changeset viewer.