From 93d4d89fe2e867743e0d40141f236ff0e50f3192 Mon Sep 17 00:00:00 2001 From: sleeptightAnsiC <91839286+sleeptightAnsiC@users.noreply.github.com> Date: Fri, 3 May 2024 16:26:33 +0200 Subject: [PATCH] Fix: move __main__.py one directory higher, so it can be properly used partially fixes https://github.com/adamrehn/ue4cli/issues/69 --- ue4cli/__main__.py => __main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename ue4cli/__main__.py => __main__.py (90%) diff --git a/ue4cli/__main__.py b/__main__.py similarity index 90% rename from ue4cli/__main__.py rename to __main__.py index 6eeefbc..58682d0 100644 --- a/ue4cli/__main__.py +++ b/__main__.py @@ -1,8 +1,8 @@ -from .cli import main +from ue4cli.cli import main import os, sys if __name__ == '__main__': - + # Rewrite sys.argv[0] so our help prompts display the correct base command interpreter = sys.executable if sys.executable not in [None, ''] else 'python3' sys.argv[0] = '{} -m ue4cli'.format(os.path.basename(interpreter))