Files
urh/tests/data/code.py
2017-07-12 13:29:44 +02:00

15 lines
382 B
Python
Executable File

#!/usr/bin/env python3
import os
import sys
from subprocess import call
cur_dir = os.path.dirname(os.path.realpath(__file__))
if sys.argv[1] == "e":
call('"' + os.path.join(cur_dir, "encode.py") + '"' + " " + sys.argv[2], shell=True)
elif sys.argv[1] == "d":
call('"' + os.path.join(cur_dir, "decode.py") + '"' + " " + sys.argv[2], shell=True)
else:
print("Unknown")