From 78ee5e630659fb63bb0d4201578cc43553d5a5e8 Mon Sep 17 00:00:00 2001 From: Yuzhen Zheng Date: Thu, 22 Sep 2022 10:44:05 +0800 Subject: [PATCH 1/2] Fixed the bugs in catching win pathes --- src/quingo/core/manager.py | 2 +- src/quingo/install_quingoc.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/quingo/core/manager.py b/src/quingo/core/manager.py index bdf6468..9f9a214 100755 --- a/src/quingo/core/manager.py +++ b/src/quingo/core/manager.py @@ -555,7 +555,7 @@ class Runtime_system_manager: # The project root directory is added to the compiler module search path. compile_cmd = ( - '{header}"{qgc_path}" "{main_fn}"{sep} -I "{root_dir}" -o "{qasm_fn}"'.format( + '{header}{qgc_path} "{main_fn}"{sep} -I "{root_dir}" -o "{qasm_fn}"'.format( header=header, qgc_path=quingoc_path, main_fn=str(self.main_file_fn), diff --git a/src/quingo/install_quingoc.py b/src/quingo/install_quingoc.py index b645e2a..ec1beb2 100644 --- a/src/quingo/install_quingoc.py +++ b/src/quingo/install_quingoc.py @@ -360,5 +360,7 @@ if __name__ == "__main__": if quingoc_path is None: download_and_install_latest_quingoc() else: + if quingoc_path[0] != '"': + quingoc_path = '"{}"'.format(quingoc_path) if check_update(quingoc_path): download_and_install_latest_quingoc(pathlib.Path(quingoc_path)) -- Gitee From b3752abfa114a1b326cdb8a66f81813632de538b Mon Sep 17 00:00:00 2001 From: Yuzhen Zheng Date: Thu, 22 Sep 2022 10:52:09 +0800 Subject: [PATCH 2/2] Updated the version number --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index d0594a3..210fa6e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = quingo -version = 0.1.6 +version = 0.1.7 author = Xiang Fu author_email = gtaifu@gmail.com use_2to3 = False -- Gitee