Index: contrib/disabled/win_theme_rezlooks.py ================================================================== --- contrib/disabled/win_theme_rezlooks.py +++ contrib/disabled/win_theme_rezlooks.py @@ -16,11 +16,11 @@ # Other themes can be used with the `gtk_theme` plugin easily. # # (!) Only works with `librezlooks.dll` in place however. -import os +import os, shutil from config import * from uikit import gtk from compat2and3 import * @@ -36,12 +36,16 @@ # use builtin .GTKRC def __init__(self, parent): # assert gtk-engine is there, else copy it over if not os.path.exists(self.gtk_dll): - if os.path.exists(self.gtk_dll_src) - os.copy(self.gtk_dll_src, self.gtk_dll) + if os.path.exists(self.gtk_dll_src): + try: + shutil.copyfile(self.gtk_dll_src, self.gtk_dll) + except: + log.ERR("could not copy librezlooks.dll") + return else: return # apply theme gtk.rc_parse_string(self.gtkrc) gtk.rc_reparse_all()