diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-16 20:20:52 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-16 20:20:52 +0800 |
| commit | b78ed10354119b6a1787db22cd19c1f04986c16d (patch) | |
| tree | 07574cbc5f478416f7a02ae95907a4c3a0c90dbd /main.py | |
| parent | f46c1abac274eb653abfeb713b8940fe0eeb7b64 (diff) | |
init main for choice
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |
