mirror of
https://github.com/Melon-Bread/RetroUFO
synced 2024-11-25 00:38:33 -05:00
Cleanup actually checks if the 'cores' dir exists now
This commit is contained in:
parent
7c5dfc4c11
commit
c60c6be12f
@ -4,7 +4,7 @@ Grabs the latest version of every libretro core from the build bot.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
__author__ = "Melon Bread"
|
__author__ = "Melon Bread"
|
||||||
__version__ = "0.9.1"
|
__version__ = "0.9.5"
|
||||||
__license__ = "MIT"
|
__license__ = "MIT"
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
@ -112,7 +112,7 @@ def extract_cores(_location):
|
|||||||
|
|
||||||
def clean_up():
|
def clean_up():
|
||||||
""" Removes all the downloaded files """
|
""" Removes all the downloaded files """
|
||||||
if os.listdir('cores'):
|
if os.path.isdir('cores'):
|
||||||
rmtree('cores/')
|
rmtree('cores/')
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Grabs the latest version of every libretro core from the build bot.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
__author__ = "Melon Bread"
|
__author__ = "Melon Bread"
|
||||||
__version__ = "0.9.1"
|
__version__ = "0.9.5"
|
||||||
__license__ = "MIT"
|
__license__ = "MIT"
|
||||||
|
|
||||||
import os
|
import os
|
||||||
@ -257,7 +257,7 @@ class Form(QDialog):
|
|||||||
|
|
||||||
def clean_up(self):
|
def clean_up(self):
|
||||||
""" Removes all the downloaded files """
|
""" Removes all the downloaded files """
|
||||||
if os.listdir('cores'):
|
if os.path.isdir('cores'):
|
||||||
rmtree('cores/')
|
rmtree('cores/')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user