1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/tools/misc/qmake2cmake/fix-locations.patch
2023-04-25 00:14:24 +03:00

23 lines
1 KiB
Diff

diff --git a/src/qmake2cmake/run_pro2cmake.py b/src/qmake2cmake/run_pro2cmake.py
index fd3e11a..bdbadb0 100755
--- a/src/qmake2cmake/run_pro2cmake.py
+++ b/src/qmake2cmake/run_pro2cmake.py
@@ -194,7 +194,6 @@ def run(all_files: typing.List[str], pro2cmake: str, args: argparse.Namespace) -
) -> typing.Tuple[int, str, str]:
filename, index, total = data
pro2cmake_args = []
- pro2cmake_args.append(sys.executable)
pro2cmake_args.append(pro2cmake)
if args.min_qt_version:
pro2cmake_args += ["--min-qt-version", args.min_qt_version]
@@ -257,8 +256,7 @@ def run(all_files: typing.List[str], pro2cmake: str, args: argparse.Namespace) -
def main() -> None:
args = parse_command_line()
- script_path = os.path.dirname(os.path.abspath(__file__))
- pro2cmake = os.path.join(script_path, "pro2cmake.py")
+ pro2cmake = os.path.join(os.path.dirname(sys.argv[0]), "qmake2cmake")
base_path = args.path
all_files = find_all_pro_files(base_path, args)