Skip to content

Instantly share code, notes, and snippets.

@dstufft
Last active August 29, 2015 13:55
Show Gist options
  • Save dstufft/8710270 to your computer and use it in GitHub Desktop.
Save dstufft/8710270 to your computer and use it in GitHub Desktop.
import zipimport
# Used to try and prevent bugs from people who see that Wheels
# support being added to sys.path and expect that your library/tool should
# support this misfeature.
try:
if isinstance(__loader__, zipimport.zipimporter):
raise RuntimeError(
"Zipped imports are not supported, use something less terrible."
)
except NameError:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment