Re: [Zope] Python script problem
11 Aug
2002
11 Aug
'02
2:21 a.m.
On Saturday 10 August 2002 05:57 am, list_subscriber@neurobs.com wrote:
Hi, I am trying to call 'zip'(linux) from within my python external method. The is what I do:
### SRC ###
import os
src_dir = 'some_dir' cmd_apth = '/usr/bin/zip' zip_file_name = 'res.zip'
os.chdir(src_dir) result = os.spawnl(os.P_WAIT,cmd_path,'-rv',zip_file_name,'.') print result
### END SRC ###
I'm guessing that you are just tring to invoke zip on the res.zip. Seems to me that you probably want to just use the system command -- import os os.system( '/usr/bin/zip res.zip' )
8639
Age (days ago)
8639
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dennis Allison