Skip to content

Instantly share code, notes, and snippets.

@yuuichi-fujioka
Created May 21, 2013 01:14
Show Gist options
  • Save yuuichi-fujioka/5616898 to your computer and use it in GitHub Desktop.
Save yuuichi-fujioka/5616898 to your computer and use it in GitHub Desktop.
import module from string. Only available for Python >= 2.7 or 3.x
import importlib
m = importlib.import_module('foo.bar')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment