summaryrefslogtreecommitdiff
path: root/server.py
blob: 44ed2bcdac150f503fccf75f1564b57f9d8f8823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os

from domestic.parse.internal_server_error_exception_handling import *
from domestic.parse.command_argument_parser import *
from domestic.parse.command_validation import *
from domestic.utility.program_setup import *
from domestic.parse.alias_parser import *
from domestic.global_state import *


@internal_server_error_exception_handling
def main():
  state['root'] = '{}/Aftermath'.format(os.getcwd().replace('\\', '/'))
  program_setup()

  while True:
    command_validation(command_argument_parser(alias_parser(input())))


if __name__ == '__main__':
  main()