diff --git a/setup.py b/setup.py index f525b6775..77b9fe983 100755 --- a/setup.py +++ b/setup.py @@ -35,7 +35,10 @@ BASEDIR = os.path.dirname(os.path.realpath(__file__)) icon_path = os.path.join('qutebrowser', 'icons') -shutil.rmtree(icon_path) +try: + shutil.rmtree(icon_path) +except OSError: + pass os.mkdir(icon_path) for fn in glob.glob('icons/*.png'): shutil.copy(fn, icon_path)