Skip to content

Removed unnecessary import #497

wants to merge 1 commit into from

2 participants

mttr commented Aug 17, 2012

Calling 'import pylon.config' (which is not an actual module) was breaking the build process...

@mttr mttr Removed 'import pylons.config', since it was unnecessary and broke th…
…e 'make pyx' process (since pylons.config isn't an actual module...)

pylons.config is definitely an actual importable python object and is used in several places in this file. It sounds like something else is amiss with your build environment. If you'd like help figuring it out, please send a description of the error to our mailing list or dev IRC channel.

@chromakode chromakode closed this Aug 17, 2012
mttr commented Aug 17, 2012

According to the documentation for Pylons, pylons.config is a global object contained within the pylons module--in which case, the proper way to import it is with from pylons import config. But even that's not necessary since pylons is already imported in that file, and can be referenced by using pylons.config (which it already is).


Gotcha. You are correct that the import can be pruned. Reopening.

@chromakode chromakode reopened this Aug 17, 2012

Merged, thank you! :)


@chromakode chromakode closed this Aug 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.