Skip to content

Instantly share code, notes, and snippets.

@ronshilo
Last active December 10, 2018 22:21
Show Gist options
  • Save ronshilo/4d47434f3e8cb688594b7086efc394fd to your computer and use it in GitHub Desktop.
Save ronshilo/4d47434f3e8cb688594b7086efc394fd to your computer and use it in GitHub Desktop.
import importlib.util
spec = importlib.util.spec_from_file_location("core", "/Users/ronsh/Documents/GitHub/python/stam/core.py")
core = importlib.util.module_from_spec(spec)
spec.loader.exec_module(core)
mycore = core.Core() # type: CoreIfc
mycore.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment