Daniel Nogradi <[EMAIL PROTECTED]> wrote:
>If you execute your script from the command line on Linux you need to
>enclose it in quotation marks otherwise your shell will interfere. So
>you need to invoke your program as
>
>python yourscript.py "ABCE-123456  ABC_DEF_Suggest(abc def ghi).txt"

Same is true on Windows. It's just that some commands magically convert
filenames with spaces into a single argument if you don't quote them.
(Compare, for instance, cd \Program Files with dir \Program Files .)

>and need to refer to the argument as sys.argv[1:][0]

That's an interesting way of spelling sys.argv[1] .

-- 
\S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to