File: virtual_environment.patch

package info (click to toggle)
mu-editor 1.2.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 13,492 kB
  • sloc: python: 33,326; makefile: 154; xml: 32; sh: 7
file content (25 lines) | stat: -rw-r--r-- 786 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Index: mu-editor/mu/wheels/__init__.py
===================================================================
--- mu-editor.orig/mu/wheels/__init__.py
+++ mu-editor/mu/wheels/__init__.py
@@ -8,7 +8,7 @@ import logging
 import subprocess
 import tempfile
 import zipfile
-
+from PyQt5.QtCore import QStandardPaths
 from .. import __version__ as mu_version
 
 
@@ -27,7 +27,10 @@ class WheelsBuildError(WheelsError):
 
 logger = logging.getLogger(__name__)
 
-WHEELS_DIRPATH = os.path.dirname(__file__)
+#WHEELS_DIRPATH = os.path.dirname(__file__)
+WHEELS_DIRPATH = os.path.join(QStandardPaths.writableLocation(
+    QStandardPaths.StandardLocation.DataLocation),
+                              "mu")
 ZIP_FILEPATH = os.path.join(WHEELS_DIRPATH, mu_version + ".zip")
 
 #