Files
Sheerka-Old/main.py
T
2019-10-29 18:39:51 +01:00

23 lines
409 B
Python

import sys
from core.utils import sysarg_to_string
from core.sheerka import Sheerka
def main():
sheerka = Sheerka()
sheerka.initialize()
# first, record the event
event_as_string = sysarg_to_string(sys.argv[1:])
result = sheerka.eval(event_as_string)
# execute the concepts
print(result)
return True
if __name__ == '__main__':
res = main()
exit(0 if res else 1)