Ridzwan Aminuddin wrote at 2007-2-9 00:47 -0800: > ... > command = "cd "+homedir > os.popen(command)
This "popen" is useless. It will change the working directory in the new (!) process that executes "command". But the effect is lost as soon as the process ends (after the "cd" has been executed). "os.popen('cd ...')" will not affect the working directory of the Zope process (or any later 'os.popen'). Be warned: you should *not* change Zope's working directory. Changing global resources (such as the working directory) is dangerous in a multi thread environment (such as Zope). -- Dieter _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )