#235 Remove shebang from Tk module

v3.0.0
open
nobody
Tk (7)
1
2011-04-15
2011-04-15
No

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.

Discussion

  • 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