__init__.py 384 B

1234567891011121314151617
  1. from importlib import reload
  2. from os import path
  3. import scriptshifter.tables
  4. TEST_DIR = path.dirname(path.realpath(__file__))
  5. TEST_DATA_DIR = path.join(TEST_DIR, "data")
  6. def reload_tables():
  7. reload(scriptshifter.tables) # Reload new config dir.
  8. from scriptshifter import tables
  9. tables.list_tables.cache_clear()
  10. tables.load_table.cache_clear()
  11. return tables