From e7fe409629b0772468935fdd0ac0956d09e68de0 Mon Sep 17 00:00:00 2001 From: heinezen Date: Sat, 22 Jul 2023 16:52:41 +0200 Subject: [PATCH] cython: Fix openage module import error. --- run.py.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run.py.in b/run.py.in index 8c9953e48a..7304b6dfe4 100755 --- a/run.py.in +++ b/run.py.in @@ -11,8 +11,12 @@ which satisifies that requirement. """ if __name__ == '__main__@SOME_UNDEFINED_VARIABLE_CMAKE_WILL_REMOVE@': + # This is stupid but without it, Cython/Python cannot find the openage module. + import sys + sys.path.append('./bin') + from openage.__main__ import main main() else: print("Running this in the source directory is not supported.", - "Please use `make run` or `bin/run.py` to start instead.") + "Please use `make run` or `bin/run.py` to start instead.")