Skip to content

Commit

Permalink
Use compiler languages instead of builder
Browse files Browse the repository at this point in the history
Fixes: #23
  • Loading branch information
ylogx committed May 21, 2015
1 parent 55b1d58 commit 17b701d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions universal/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,9 @@ def build_and_run_file(filename):
elif extension == 'py':
print(" = = = = = = ", YELLOW, "PYTHON: Executing " + filename + " file", \
RESET, " = = = = = =\n")
command_run = EXECUTABLE_PYTHON + " " + filename
test_file = directory + "/" + name + ".input"
if os.path.exists(test_file):
command_run += " < " + test_file
return perform_system_command(command_run)
compiler = Compiler(filename)
out = compiler.run()
return out
elif extension == 'java':
command = EXECUTABLE_JAVAC + ' ' + filename
perform_system_command(command)
Expand Down

0 comments on commit 17b701d

Please sign in to comment.