From dd07ff4d686f07cdc9736627dd0ef099ef5e4e4f Mon Sep 17 00:00:00 2001 From: troido Date: Fri, 6 Mar 2020 11:26:59 +0100 Subject: new directory structure for the separate client repo --- asciifarmclient/__main__.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 asciifarmclient/__main__.py (limited to 'asciifarmclient/__main__.py') 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() -- cgit