From 17d7e7823da3610360e8dcedbdf015f723df9e53 Mon Sep 17 00:00:00 2001 From: amoh-godwin Date: Sat, 22 Feb 2020 15:49:40 +0000 Subject: [PATCH] safe for win --- preview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preview.py b/preview.py index acc4a62..62a700a 100644 --- a/preview.py +++ b/preview.py @@ -22,7 +22,7 @@ def __init__(self): # user local qmlview if platform.system() == 'Windows': cwd = os.path.dirname(sys.argv[0]) - self.qmlview = os.path.join(cwd, 'qmlview.exe') + self.qmlview = '"' + os.path.join(cwd, 'qmlview.exe') + '"' else: self.qmlview = './qmlview'