Skip to content

Instantly share code, notes, and snippets.

@zopyx
Created May 31, 2016 12:58
Show Gist options
  • Save zopyx/7b2bbca833db1309515dfc61f9163ff1 to your computer and use it in GitHub Desktop.
Save zopyx/7b2bbca833db1309515dfc61f9163ff1 to your computer and use it in GitHub Desktop.
# ext needed but not the basename
base, ext = os.path.splitext(name)
if ext in (....):
...
import something
# module somthing is not used but it's import is need for initializing something
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment