From fb1175ee04b694ec657a099997d47e2a404b607e Mon Sep 17 00:00:00 2001 From: loathingKernel <142770+loathingKernel@users.noreply.github.com> Date: Sun, 12 Mar 2023 15:32:55 +0200 Subject: [PATCH] Main: Trust shebangs. Fixes launching games on NixOS Co-authored-by: multisn8 --- rare/__main__.py | 1 + rare/utils/paths.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 rare/__main__.py diff --git a/rare/__main__.py b/rare/__main__.py old mode 100644 new mode 100755 index 9a73aeb3..d60a50c8 --- a/rare/__main__.py +++ b/rare/__main__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import multiprocessing import os import pathlib diff --git a/rare/utils/paths.py b/rare/utils/paths.py index 02b409f5..580ce665 100644 --- a/rare/utils/paths.py +++ b/rare/utils/paths.py @@ -129,7 +129,7 @@ def get_rare_executable() -> List[str]: if sys.executable == os.path.abspath(sys.argv[0]): executable = [sys.executable] else: - executable = [sys.executable, os.path.abspath(sys.argv[0])] + executable = [os.path.abspath(sys.argv[0])] elif platform.system() == "Windows": executable = [sys.executable]