You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've looked at OSX and a few linux distros. Especially ones that support having both 2.x and 3.x pythons installed. It seems that the executable python2.7 exists on all of them.
On my server I made webserver.py executable and added the following to the top:
!/usr/bin/env python2.7
That looks for the python2.7 in path vs a hard path. Maybe give it a try on your dev box and see if it causes issues. Seems to work wherever I put it.
This allows it to just run as ./webserver.py which helps in writing a init.d script to control it. I need to polish up the init.d script and then I'll share that in a support scripts folder along with nginx config.
The text was updated successfully, but these errors were encountered:
Actually, while we're at it, I'm going to rename webserver.py -> docstore. Once things settle down a bit we could put this project on pypi and then people could do pip install docstore and after docstore will be in their sys bin path.
I've looked at OSX and a few linux distros. Especially ones that support having both 2.x and 3.x pythons installed. It seems that the executable python2.7 exists on all of them.
On my server I made webserver.py executable and added the following to the top:
!/usr/bin/env python2.7
That looks for the python2.7 in path vs a hard path. Maybe give it a try on your dev box and see if it causes issues. Seems to work wherever I put it.
This allows it to just run as ./webserver.py which helps in writing a init.d script to control it. I need to polish up the init.d script and then I'll share that in a support scripts folder along with nginx config.
The text was updated successfully, but these errors were encountered: