Skip to content

Commit

Permalink
cython: Fix openage module import error.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Jul 22, 2023
1 parent 7d578bc commit e7fe409
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion run.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

0 comments on commit e7fe409

Please sign in to comment.