From e30122d1074fb91a757a01548ef23c8519948f0f Mon Sep 17 00:00:00 2001 From: tntwise Date: Mon, 16 Sep 2024 23:01:49 -0700 Subject: [PATCH] patch --- REAL-Video-Enhancer.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/REAL-Video-Enhancer.py b/REAL-Video-Enhancer.py index 97e9792d..4e8b4f9d 100644 --- a/REAL-Video-Enhancer.py +++ b/REAL-Video-Enhancer.py @@ -2,7 +2,10 @@ import os # patch for macos -os.chdir(os.path.dirname(os.path.abspath(__file__))) +if sys.platform == 'darwin': + os.chdir(os.path.dirname(os.path.abspath(__file__))) + # this goes one step up, and goes into the actual directory. This is where backend will be copied to. + os.chdir("..") import subprocess import re import math @@ -57,12 +60,7 @@ import yt_dlp import validators -# patch for macos -if getPlatform() == "darwin": - # this will redirect to the _internal directory - os.chdir(os.path.dirname(os.path.abspath(__file__))) - # this goes one step up, and goes into the actual directory. This is where backend will be copied to. - os.chdir("..") + class MainWindow(QMainWindow, Ui_MainWindow):