You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
497 B
Python
20 lines
497 B
Python
import sys
|
|
|
|
if __package__ is None and not hasattr(sys, "frozen"):
|
|
import os.path
|
|
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
sys.path.insert(0, os.path.realpath(path))
|
|
|
|
import owo
|
|
|
|
if __name__ == "__main__":
|
|
output=owo.main()
|
|
del owo
|
|
if output.__contains__('_err'):
|
|
print("an error occured!", file=sys.stderr)
|
|
if output.__contains__('_kb'):
|
|
print("interupted by keyboard")
|
|
sys.exit()
|
|
else:
|
|
pass # output results
|