From 5c5aa2d77ce4d782adf093d612ef6fb05b66a597 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Sat, 5 Apr 2014 15:15:32 +0300 Subject: [PATCH] Fix windows icon problem --- youtube_dl_gui/Utils.py | 1 - youtube_dl_gui/YoutubeDLGUI.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/youtube_dl_gui/Utils.py b/youtube_dl_gui/Utils.py index b25df5d..753a43f 100644 --- a/youtube_dl_gui/Utils.py +++ b/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))): diff --git a/youtube_dl_gui/YoutubeDLGUI.py b/youtube_dl_gui/YoutubeDLGUI.py index 700850d..167df0f 100644 --- a/youtube_dl_gui/YoutubeDLGUI.py +++ b/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):