diff --git a/setup.py b/setup.py index 79971729dc..e524cad58e 100644 --- a/setup.py +++ b/setup.py @@ -28,8 +28,9 @@ def get_scripts(): """ if os.name == "nt": batpath = os.path.join("bin", "windows", "evennia.bat") + scriptpath = os.path.join(sys.prefix, "bin", "windows", "evennia.py") with open(batpath, "w") as batfile: - batfile.write("@\"%s\" \"%s\" %%*" % (sys.executable, batpath)) + batfile.write("@\"%s\" \"%s\" %%*" % (sys.executable, scriptpath)) return [batpath] else: return [os.path.join("bin", "unix", "evennia")]