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

Import cleanup #101

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Import cleanup #101

wants to merge 2 commits into from

Conversation

Cabalist
Copy link

@Cabalist Cabalist commented Jun 4, 2018

Neat project! We are waiting to receive our MK3 and I have been poking around in the different Prusa3D projects.

I removed all the import *, and organized the imports according to PEP8. The code functionally should be identical but it is much easier to see what is being used.

I was on the fence about the long imports I made from OpenGL.GL. These blocks could be replaced by just importing the GL namespace and prepending the calls in the code. i.e from OpenGL import GL; GL.glEnable

The only place I changed code besides the imports was in sceneRender.py where from PIL.Image import * was overwriting the building open function. I changed it to be Image.open() instead.

(This includes my earlier pull request that removes the .idea/ directory. )

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

Successfully merging this pull request may close these issues.

1 participant