From b78ed10354119b6a1787db22cd19c1f04986c16d Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 16 Oct 2023 20:20:52 +0800 Subject: init main for choice --- main.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..a04d1d5 --- /dev/null +++ b/main.py @@ -0,0 +1,8 @@ +from sys import argv, executable +from os import execv +if argv[1] == 'write': + execv(executable, ['python3', 'write.py']) +elif argv[1] =='read': + execv(executable, ['python3','read.py']) +else: + raise Exception("Unknown command") \ No newline at end of file -- cgit v1.2.3