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")
#
|