~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/interpret.py

  • Committer: David Coles
  • Date: 2010-03-01 08:56:49 UTC
  • Revision ID: coles.david@gmail.com-20100301085649-ez0o6bls3ipd7nxm
interpret: Hard code PATH for interpret_raw since it's not always set correctly in Apache threads

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
# working on smaller output
38
38
 
39
39
CGI_BLOCK_SIZE = 65535
 
40
PATH = "/usr/local/bin:/usr/bin:/bin"
40
41
 
41
42
def interpret_file(req, owner, jail_dir, filename, interpreter, gentle=True):
42
43
    """Serves a file by interpreting it using one of IVLE's builtin
447
448
        stdin=subprocess.PIPE, stdout=subprocess.PIPE,
448
449
        stderr=subprocess.PIPE, cwd=tramp_dir, close_fds=True,
449
450
        env={'HOME': os.path.join('/home', user.login),
450
 
             'PATH': os.environ['PATH'],
 
451
             'PATH': PATH,
451
452
             'USER': user.login,
452
453
             'LOGNAME': user.login})
453
454