cmusphinx / sphinxtrain

Acoustic model trainer for CMU Sphinx
Other
178 stars 112 forks source link

Use consistent shebang for python #28

Closed acgrobman closed 2 years ago

acgrobman commented 2 years ago

In its current state, sphinxtrain has inconsistencies in the shebangs used for Python files. 30 of the files use #!/usr/bin/env python while 5 use #!/usr/bin/python. At least one of those files cause issues both on macOS and Debian/Alpine. On macOS, the sphinxtrain executable fails because it cannot find the Python executable (zsh: /usr/local/bin/sphinxtrain: bad interpreter: /usr/bin/python: no such file or directory ) wheras on Debian/Alpine the sphinxtrain command can't even be found because of this. With the changes in this PR, sphinxtrain can be found/executed on the Linux distros and on macOS.