th3r00t / pyShelf

A simple terminal based ebook server
GNU General Public License v3.0
518 stars 33 forks source link

Linux Install importBooks Issue #41

Closed dk850 closed 4 years ago

dk850 commented 4 years ago

The hashbang at the top of the importBooks file is currently just #!python image

This doesn't play well with most linux systems as it expects a full path. Should be changed to something along the lines of #!/usr/bin/python so it looks like this and executes correctly. image

See: This stackoverflow question

th3r00t commented 4 years ago

I believe I did this as part of debugging, and forgot to change it back. You can make a pull request, or I will update this for the next release cycle. Thanks!

MartenBE commented 4 years ago

If you update this, it is best to use #!/usr/bin/env python [1]

[1] https://askubuntu.com/questions/716280/why-do-some-python-scripts-begin-with-usr-bin-env-python

th3r00t commented 4 years ago

Thanks for this issue, I can confirm it has been fixed in development