Steam for Linux

Steam for Linux

C55-Freaker Dec 12, 2012 @ 10:49am
Recommendation: use proper shebang
Most scripts (especially python scripts) use #!/usr/bin/python as shebang. To ensure compatibility among different distributions it is better to use "#!/usr/bin/env python". Additionally the major python version should be specified. On my system (gentoo) the default python interpreter is 3.2.3 which causes trouble with the python2 scripts. The ideal shebang would look like this: "#!/usr/bin/env python2"

This way you can ensure compatibility among all linux distributions.
Last edited by C55-Freaker; Dec 12, 2012 @ 10:50am
< >
Showing 1-3 of 3 comments
SUSEd Dec 13, 2012 @ 1:30am 
Its good but steam uses bash, not python.
[Linux] timopm Dec 13, 2012 @ 2:59am 
Originally posted by shished:
Its good but steam uses bash, not python.

Steam/ubuntu12_32/driverhelper.py
hy Dec 13, 2012 @ 6:44am 
Originally posted by C55-Freaker:
The ideal shebang would look like this: "#!/usr/bin/env python2"

+1
< >
Showing 1-3 of 3 comments
Per page: 15 30 50