dotfiles/.local/share/rhythmbox/plugins/fileorganizer/uninstall.py

21 lines
468 B
Python
Raw Normal View History

2020-06-15 14:53:43 +00:00
#!/usr/bin/env python3
""" FileOrganizer Uninstall Script
Remove files from the plugin folder
"""
import os
import shutil
INSTALLPATH = os.path.join(os.getenv('HOME'),
".local/share/rhythmbox/plugins/fileorganizer")
TEMPLATEPATH = os.path.join(INSTALLPATH, 'template')
if os.path.isdir(INSTALLPATH):
shutil.rmtree(INSTALLPATH)
print('\nFileOrganizer is uninstalled\n')
else:
print('\nFileOrganizer is not installed\n')