diff options
| author | troido <troido@protonmail.com> | 2020-03-06 11:26:59 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-03-06 11:26:59 +0100 |
| commit | dd07ff4d686f07cdc9736627dd0ef099ef5e4e4f (patch) | |
| tree | f43310b3779a95efd74a40ba8139cf146ad49051 /asciifarmclient/__main__.py | |
| parent | c9366616079240cd7ee3d243c9f6897d40b4267d (diff) | |
new directory structure for the separate client repo
Diffstat (limited to 'asciifarmclient/__main__.py')
| -rw-r--r-- | asciifarmclient/__main__.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/asciifarmclient/__main__.py b/asciifarmclient/__main__.py new file mode 100644 index 0000000..d086dfb --- /dev/null +++ b/asciifarmclient/__main__.py @@ -0,0 +1,16 @@ + + +import sys + +if sys.version_info[0] < 3: + print("This game is written in python 3.\nRun 'python3 "+sys.argv[0]+"' or './"+sys.argv[0]+"'") + sys.exit(-1) + +if __package__ == "asciifarmclient": + from . import main +else: + import os.path + sys.path.append(os.path.join(os.path.dirname(__file__), "..")) + from asciifarmclient import main + +main.main() |
