#235 Remove shebang from Tk module

Tk (7)

OpenGL/Tk/__init__.py has:
#!/usr/bin/env python

As PyOpenGL went trough Fedora package review ( https://bugzilla.redhat.com/show_bug.cgi?id=234121 ) it was noted that python modules should not be executable and have shebang at the begining.
Currently a patch is present in the Fedora package that removes this and it will be great if we can dump the patch.


  • Nikolay Vladimirov

    • labels: --> Tk
    • milestone: --> v3.0.0
    • priority: 5 --> 1
  • Mike C. Fletcher

    Have removed the shebang line in this module from bzr head. Fedora might want to review policy, however, as it is quite possible for modules to be executable intentionally. Often the executable module is a demo or tool for the functionality in the module. Later packages tend toward using setuptools or python -m for that functionality, but certainly lots of older modules follow that pattern. This module (Tk) was, I believe, at some point, following that pattern, but the demo was moved into the PyOpenGL-Demo package.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks