๐Ÿ“ฆ dhruvmanila / terminal-games

๐Ÿ“„ __main__.py ยท 15 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15import sys
import os.path

try:
    import main
except ImportError:
    print("Error: Could not start the game. Please make sure you're in the "
          "'terminal-games' directory.")
    sys.exit(1)

PATH = os.path.abspath(os.path.dirname(__file__))
main.WORDS_FILENAME = os.path.join(PATH, 'words.json')
main.INSTRUCTION_FILENAME = os.path.join(PATH, 'instructions.txt')
main.play()