wordless/wl_main.py
Wl_Main
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Wl_Main(QMainWindow):
def __init__(self, loading_window):
super().__init__()
self.loading_window = loading_window
Avoid deeply nested control flow statements. Open
Open
for file in glob.glob(os.path.join(
self.settings_custom['general']['imp']['temp_files']['default_path'], '*.*'
)):
os.remove(file)
Avoid deeply nested control flow statements. Open
Open
with open(file_settings_display_lang, 'wb') as f:
pickle.dump(action.lang, f)
# Remove settings file
if os.path.exists(file_settings):
Avoid deeply nested control flow statements. Open
Open
if os.path.exists(file_settings):
os.remove(file_settings)
# Remove file caches
for file in glob.glob(os.path.join(