Skip to content

Commit

Permalink
Do not compile on pexec, only on fpexec
Browse files Browse the repository at this point in the history
  • Loading branch information
bill88t committed Dec 5, 2023
1 parent d4bf371 commit 094ddbd
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions source/ljinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -1381,19 +1381,9 @@ def history(inpt): # history frontend

def pexec(inpt): # Python exec
launch_process("pexec")
prog = None
if use_compiler:
# term.nwrite("Compiling..")
prog = compile(inpt, "pexec", "exec")
# term.nwrite("\010" * 11)
# term.nwrite(" " * 11)
# term.nwrite("\010" * 11)
else:
prog = inpt
del inpt
gc.collect()
try:
exec(prog)
exec(inpt)
except KeyboardInterrupt:
term.write("^C")
if ( # Restore dir
Expand Down

0 comments on commit 094ddbd

Please sign in to comment.