Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
patois committed Oct 14, 2022
1 parent ce5274d commit afd09bf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions abyss.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,18 @@ def apply_cfg(reload=False, filters={}):
kw.msg("done!\n")
return True

# ----------------------------------------------------------------------------
def create_cfg_folder():
cfg_file = get_cfg_filename()
if not os.path.isfile(cfg_file):
os.makedirs(os.path.dirname(cfg_file))
return

# ----------------------------------------------------------------------------
def load_filters(reload=False):
global FILTERS

create_cfg_folder()
print("%s: %sloading filters..." % (PLUGIN_NAME, "re" if reload else ""))
if reload:
# TODO: properly clean-up and unload filters
Expand Down

0 comments on commit afd09bf

Please sign in to comment.