17 lines
No EOL
338 B
Python
17 lines
No EOL
338 B
Python
from sys import argv
|
|
from lib.game import *
|
|
from colorama import init
|
|
|
|
def main():
|
|
init()
|
|
if len(argv)<2:
|
|
print("You need to specify a path to a YAML file")
|
|
exit(1)
|
|
else:
|
|
game = load(argv[1])
|
|
if(game is None):
|
|
exit(1)
|
|
game.print_text()
|
|
|
|
if __name__ == "__main__":
|
|
main() |