From: Syver E. <syv...@on...> - 2002-01-25 04:54:03
|
dman <ds...@ri...> writes: > On Thu, Jan 24, 2002 at 10:57:55AM +0100, Syver Enstad wrote: > | dman <ds...@ri...> writes: > | > > | > Sure you can -- the '#' makes it a comment as far as python is > | > concerned; it doesn't matter that your shell ignores it too. > | > | I know, I know, but it's no point for me in doing so. > > The point, if you use emacs and the given code, is for it to determine > > the correct interpreter to use :-). I know that too, but I am a bit pissed off that I can't have the shebang stuff on the OS that I am running without too much hassle. I once went to some length to get it to work on windows, something like this: --begin somepythonscript.bat-- @python -x %0 %* rem = """ goto :end """ # python code below here ..... .... --end-- But the rem line is outputted by the shell, and frankly it's pretty ugly. Now this was completely off topic sorry. -- Vennlig hilsen Syver Enstad |