From c60c6be12f5143f6f71e00130ddb227210668fcd Mon Sep 17 00:00:00 2001 From: Melon Bread Date: Fri, 17 May 2019 01:39:50 -0400 Subject: [PATCH] Cleanup actually checks if the 'cores' dir exists now --- RetroUFO.py | 4 ++-- RetroUFO_GUI.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/RetroUFO.py b/RetroUFO.py index fb9e7ff..9b0d083 100755 --- a/RetroUFO.py +++ b/RetroUFO.py @@ -4,7 +4,7 @@ Grabs the latest version of every libretro core from the build bot. """ __author__ = "Melon Bread" -__version__ = "0.9.1" +__version__ = "0.9.5" __license__ = "MIT" import argparse @@ -112,7 +112,7 @@ def extract_cores(_location): def clean_up(): """ Removes all the downloaded files """ - if os.listdir('cores'): + if os.path.isdir('cores'): rmtree('cores/') diff --git a/RetroUFO_GUI.py b/RetroUFO_GUI.py index fd26cc6..be3ee44 100755 --- a/RetroUFO_GUI.py +++ b/RetroUFO_GUI.py @@ -4,7 +4,7 @@ Grabs the latest version of every libretro core from the build bot. """ __author__ = "Melon Bread" -__version__ = "0.9.1" +__version__ = "0.9.5" __license__ = "MIT" import os @@ -257,7 +257,7 @@ class Form(QDialog): def clean_up(self): """ Removes all the downloaded files """ - if os.listdir('cores'): + if os.path.isdir('cores'): rmtree('cores/')