"download_list_file_active") # single_downloads_list_file contains gid of non categorised downloads single_downloads_list_file = os.path.join(category_folder, "Single Downloads") # persepolis tmp folder in /tmp if os_type != 'Windows': user_name_split = home_address.split('/') user_name = user_name_split[2] persepolis_tmp = '/tmp/persepolis_' + user_name else: persepolis_tmp = os.path.join(str(home_address), 'AppData', 'Local', 'persepolis_tmp') # removing persepolis_tmp at persepolis startup osCommands.removeDir(persepolis_tmp) # persepolis_shutdown persepolis_shutdown = os.path.join(persepolis_tmp, 'shutdown') # shutil.rmtree(persepolis_shutdown, ignore_errors=True, onerror=None) # creating folders for folder in [ config_folder, download_info_folder, persepolis_tmp, category_folder, queue_info_folder, persepolis_shutdown ]: osCommands.makeDirs(folder) # creating files for file in [ queues_list, download_list_file, download_list_file_active,
def resetPushButtonPressed(self, button): status = osCommands.removeDir(str(config_folder))