aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/core.py (renamed from core.py)9
1 files changed, 5 insertions, 4 deletions
diff --git a/core.py b/src/core.py
index de6ed99..bb5d351 100644
--- a/core.py
+++ b/src/core.py
@@ -1,7 +1,7 @@
import sys
import io
import os
-from PyQt4 import QtCore, QtGui, uic
+from PyQt5 import QtCore, QtGui, uic
from os.path import expanduser
import subprocess as sp
import numpy
@@ -11,7 +11,7 @@ import time
from collections import OrderedDict
import json
from importlib import import_module
-from PyQt4.QtGui import QDesktopServices
+from PyQt5.QtCore import QStandardPaths
import string
@@ -19,8 +19,9 @@ class Core():
def __init__(self):
self.FFMPEG_BIN = self.findFfmpeg()
- self.dataDir = QDesktopServices.storageLocation(
- QDesktopServices.DataLocation)
+ self.dataDir = QStandardPaths.writableLocation(
+ QStandardPaths.AppConfigLocation
+ )
self.presetDir = os.path.join(self.dataDir, 'presets')
if getattr(sys, 'frozen', False):
# frozen