Skip to content

Instantly share code, notes, and snippets.

@PttCodingMan
Created August 28, 2023 06:47
Show Gist options
  • Save PttCodingMan/cde1a71e0036074bc84bd99a7b815487 to your computer and use it in GitHub Desktop.
Save PttCodingMan/cde1a71e0036074bc84bd99a7b815487 to your computer and use it in GitHub Desktop.
module = None
try:
if module is None:
module = importlib.import_module(f'module_folder.module')
else:
module = importlib.reload(module)
except Exception as e:
raise e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment