[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: python syntax

Jeroen Ruigrok van der Werven

1/7/2008 11:01:00 AM

-On [20080107 11:46], mpho raborife (mraborife@yahoo.com) wrote:
>os.system("HCopy -T 1 -C" 'os.path.join(conf_dir, "/hcopy.conf")' "-S"
>'os.path.join(list_dir, "hcopy_list.txt")')

I would guess you would want this:

os.system("HCopy -T 1 -C" + os.path.join(conf_dir, "/hcopy.conf") + "-S" +
os.path.join(list_dir, "hcopy_list.txt"))

But I'd personally not use such a contracted syntax, it makes detecting
failure on any of the three function calls difficult.

--
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
ã?¤ã?§ã?«ã?¼ã?³ ã?©ã?¦ã??ã?­ã??ã?¯ ã?´ã?¡ã?³ ã??ã?« ã?¦ã?§ã?«ã?´ã?§ã?³
http://www.in-n... | http://www.ra...
If I promise you the Moon and the Stars, would you believe it..?