-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvce.py
More file actions
23 lines (21 loc) · 725 Bytes
/
Copy pathvce.py
File metadata and controls
23 lines (21 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python3
import os
import sys
if os.path.dirname(os.path.realpath(__file__)) != os.getcwd():
# If current working directory is not where the file lives, we should load files from libexec
LIBEXEC_PATH = os.path.join(os.path.dirname(__file__), "..", "libexec")
sys.path.insert(0, LIBEXEC_PATH)
if __name__ == '__main__':
print(os.path.dirname(os.path.realpath(__file__)) )
print(os.getcwd())
command_line_args = sys.argv[1:]
try:
import vce_lib
except ModuleNotFoundError:
print('\nModuleNotFoundError')
sys.exit(1)
except KeyboardInterrupt:
print('\nProgram interrupted.')
sys.exit(1)
else:
vce_lib.main(command_line_args)