I like it, thanks for sharing.
Why not a standard unix shebang line at top of index.py ?
Why not a standard unix shebang line at top of index.py ?
Since the QuickServ syntax deviates from the standard shebang, I thought it would be important to highlight front and center in the tutorial.
PS: I also like your shorter syntax and would be happy if it became a cross platform standard - Shebang 2.0..
#!/usr/bin/env python3
should be completely valid as far as I have tested. It's just that QuickServ doesn't require the absolute path.Another, more subtle difference is that QuickServ actually shlexes the shebang into arguments. On Linux, on the other hand, the remainder of the shebang string after the path to the executable is passed as a single argument.
http://mail-index.netbsd.org/netbsd-users/2008/11/09/msg0023...
https://github.com/jstrieb/quickserv/commit/3027a8e91abf4a57...