Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
tntwise5 committed Sep 17, 2024
1 parent e89cea0 commit e30122d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions REAL-Video-Enhancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit e30122d

Please sign in to comment.