Commit f269aa7e authored by echel0n's avatar echel0n

Fixed issues with startup and shutil.rmtree

parent 1c3941ac
......@@ -25,10 +25,10 @@ import shutil
if __name__ == '__main__':
# remove pyc and pyo files
[p.unlink() for p in pathlib.Path(os.path.dirname(__file__)).rglob('*.py[co]')]
[p.unlink() for p in pathlib.Path(os.path.dirname(__file__)).rglob('*.py[co]') if p.is_file()]
# remove __pycache__ folder
[shutil.rmtree(p) for p in pathlib.Path(os.path.dirname(__file__)).rglob('__pycache__')]
[shutil.rmtree(p) for p in pathlib.Path(os.path.dirname(__file__)).rglob('__pycache__') if p.is_dir()]
from sickrage import main
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment