Skip to content

Commit

Permalink
Compile version 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ingolfured committed Jun 11, 2012
1 parent ab503d4 commit 811f879
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions neutron/ide/views.py
Expand Up @@ -186,13 +186,8 @@ def compile (request):
outfile = path
outfile = outfile.split(".")[0]
outfile = outfile + ".out"
compiling = "g++ " + path + " -o " + outfile
#os.system(compiling)
p = subprocess.Popen(["g++",path,"-o",outfile], stdout=subprocess.PIPE)
p = subprocess.Popen(["g++",path,"-o",outfile], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()

#subprocess.call(["ls", "-l"], shell=True)
#proc = os.popen(outfile)
return http.HttpResponse(json.dumps({'result': out, 'error': err}), mimetype=settings.JSON_MIME)


Expand Down

0 comments on commit 811f879

Please sign in to comment.