Skip to content

Commit

Permalink
patch for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed Sep 11, 2024
1 parent 5e14e44 commit 20864d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions REAL-Video-Enhancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
from src.ui.QTstyle import Palette
from src.ui.QTcustom import DownloadDepsDialog, RegularQTPopup, SettingUpBackendPopup

# patch for macos
os.chdir(os.path.dirname(os.path.abspath(__file__)))

class MainWindow(QMainWindow, Ui_MainWindow):
"""Main window class for the REAL Video Enhancer application.
Expand Down
2 changes: 1 addition & 1 deletion src/Backendhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def getAvailableBackends(self):
for word in output:
if "objc" in word:
continue
new_out += word
new_out += word + " "
output = new_out
# Find the part of the output containing the backends list
start = output.find("[")
Expand Down
5 changes: 1 addition & 4 deletions src/Util.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ def isFlatpak():
"io.github.tntwise.REAL-Video-EnhancerV2",
)
else:
if getPlatform() == 'darwin':
cwd = os.path.join(f"{homedir}","Library","REAL-Video-Enhancer")
else:
cwd = os.getcwd()
cwd = os.getcwd()


def getAvailableDiskSpace() -> float:
Expand Down

0 comments on commit 20864d6

Please sign in to comment.