Browse Source

Fix windows icon problem

doc-issue-template
MrS0m30n3 10 years ago
parent
commit
5c5aa2d77c
2 changed files with 1 additions and 2 deletions
  1. 1
      youtube_dl_gui/Utils.py
  2. 2
      youtube_dl_gui/YoutubeDLGUI.py

1
youtube_dl_gui/Utils.py

@ -63,7 +63,6 @@ def makedir(path):
os.makedirs(path)
def icon_path(icon_path, file_path):
icon_path = icon_path.split(get_path_seperator())
L = len(icon_path)
file_path = os.path.abspath(file_path).split(get_path_seperator())
for index, item in reversed(list(enumerate(icon_path))):

2
youtube_dl_gui/YoutubeDLGUI.py

@ -74,7 +74,7 @@ LANGUAGES = ["English",
"Spanish",
"German"]
ICON = icon_path('icons/ytube.png', __file__)
ICON = icon_path(['icons', 'ytube.png'], __file__)
class MainFrame(wx.Frame):

Loading…
Cancel
Save