Skip to content

Import cleanup#101

Open
Cabalist wants to merge 2 commits into
prusa3d:masterfrom
Cabalist:import_cleanup
Open

Import cleanup#101
Cabalist wants to merge 2 commits into
prusa3d:masterfrom
Cabalist:import_cleanup

Conversation

@Cabalist

@Cabalist Cabalist commented Jun 4, 2018

Copy link
Copy Markdown

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