1
0
mirror of https://github.com/Melon-Bread/RetroUFO synced 2024-11-24 16:28:30 -05:00

Cleanup actually checks if the 'cores' dir exists now

This commit is contained in:
Rain Clark 2019-05-17 01:39:50 -04:00
parent 7c5dfc4c11
commit c60c6be12f
2 changed files with 4 additions and 4 deletions

View File

@ -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/')

View File

@ -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/')