mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
From d2bc8e4ee9f8af710c59a73521c3bfab60ca9c4f Mon Sep 17 00:00:00 2001
|
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
|
Date: Sat, 6 Oct 2018 12:15:40 +1000
|
|
Subject: classes/info: use finddir
|
|
|
|
|
|
diff --git a/src/classes/info.py b/src/classes/info.py
|
|
index 3bdb404..fed2985 100644
|
|
--- a/src/classes/info.py
|
|
+++ b/src/classes/info.py
|
|
@@ -24,7 +24,7 @@
|
|
You should have received a copy of the GNU General Public License
|
|
along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
|
|
"""
|
|
-
|
|
+import subprocess
|
|
import os
|
|
|
|
from PyQt5.QtCore import QDir
|
|
@@ -41,7 +41,7 @@ COPYRIGHT = "Copyright (c) 2008-2018 %s" % COMPANY_NAME
|
|
CWD = os.getcwd()
|
|
PATH = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) # Primary openshot folder
|
|
HOME_PATH = os.path.join(os.path.expanduser("~"))
|
|
-USER_PATH = os.path.join(HOME_PATH, ".openshot_qt")
|
|
+USER_PATH = os.path.join(subprocess.run(["finddir", "B_USER_VAR_DIRECTORY"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True, errors="strict").stdout.strip(), "openshot_qt")
|
|
BACKUP_PATH = os.path.join(USER_PATH, "backup")
|
|
BLENDER_PATH = os.path.join(USER_PATH, "blender")
|
|
ASSETS_PATH = os.path.join(USER_PATH, "assets")
|
|
--
|
|
2.19.0
|
|
|