Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 22 lines 1.0 kB view raw
1diff --git a/src/qmake2cmake/run_pro2cmake.py b/src/qmake2cmake/run_pro2cmake.py 2index fd3e11a..bdbadb0 100755 3--- a/src/qmake2cmake/run_pro2cmake.py 4+++ b/src/qmake2cmake/run_pro2cmake.py 5@@ -194,7 +194,6 @@ def run(all_files: typing.List[str], pro2cmake: str, args: argparse.Namespace) - 6 ) -> typing.Tuple[int, str, str]: 7 filename, index, total = data 8 pro2cmake_args = [] 9- pro2cmake_args.append(sys.executable) 10 pro2cmake_args.append(pro2cmake) 11 if args.min_qt_version: 12 pro2cmake_args += ["--min-qt-version", args.min_qt_version] 13@@ -257,8 +256,7 @@ def run(all_files: typing.List[str], pro2cmake: str, args: argparse.Namespace) - 14 def main() -> None: 15 args = parse_command_line() 16 17- script_path = os.path.dirname(os.path.abspath(__file__)) 18- pro2cmake = os.path.join(script_path, "pro2cmake.py") 19+ pro2cmake = os.path.join(os.path.dirname(sys.argv[0]), "qmake2cmake") 20 base_path = args.path 21 22 all_files = find_all_pro_files(base_path, args)