python syntax

Jeroen Ruigrok van der Werven asmodai at in-nomine.org
Mon Jan 7 12:01:04 CET 2008


-On [20080107 11:46], mpho raborife (mraborife at 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-nomine.org/ | http://www.rangaku.org/
If I promise you the Moon and the Stars, would you believe it..?



More information about the Python-list mailing list