Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ImportError when __main__ already loaded #616

Merged
merged 1 commit into from
Apr 3, 2016

Conversation

Dataliberate
Copy link

In rdflib/init - place import of main into a try catch block to catch ImportError that you get when already imported such as in a Google App Engine instance running webapp2.

Enables the use of rdflib unchanged in this configuration of Google App Engine and potentially other environments that claim main before rdflib gets loaded.

This has been tested as functional in the latest version of the Schema.org code base.

…at you get when already imported such as in a Google App Engine instance running webapp2.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 63.972% when pulling 6860507 on Dataliberate:master into d7013fb on RDFLib:master.

RichardWallis referenced this pull request in schemaorg/schemaorg Apr 3, 2016
…at you get when already imported such as in a Google App Engine instance running webapp2.
@joernhees joernhees added this to the rdflib 4.2.2 milestone Apr 3, 2016
@joernhees joernhees added the enhancement New feature or request label Apr 3, 2016
@joernhees joernhees merged commit 922f7c9 into RDFLib:master Apr 3, 2016
@joernhees
Copy link
Member

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants