KevinHorvatin / google-apps-for-your-domain-ldap-sync

Automatically exported from code.google.com/p/google-apps-for-your-domain-ldap-sync
0 stars 0 forks source link

Version in shebang #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./sync_ldap.py on a Fedora system.

What is the expected output?
Script should use the default installed Python interpreter (typically
/usr/bin/python).

What do you see instead?
"bash: ./sync_ldap.py: /usr/bin/python2.4: bad interpreter: No such file or
directory"

What version of the product are you using? On what operating system?
SVN revision 49, on Fedora 8 x86_64

Please provide any additional information below.
The versioned python isn't a universal convention. 

I might recommend checking for the version using something like:
#!/usr/bin/env python
import sys
if sys.version_info[:2] < (2, 4):
  print "need python 2.4"
  sys.exit(1)

 Thanks!

Original issue reported on code.google.com by danielmy...@gmail.com on 27 Feb 2008 at 5:08

GoogleCodeExporter commented 9 years ago

Original comment by RobertEs...@gmail.com on 23 May 2008 at 6:58