]> git.parisson.com Git - tools.git/commitdiff
Fix PYTHONPATH for ZODB
authoryomguy <yomguy@457c0346-1240-4656-8a5a-9edca8063506>
Mon, 21 Jan 2008 18:00:17 +0000 (18:00 +0000)
committeryomguy <yomguy@457c0346-1240-4656-8a5a-9edca8063506>
Mon, 21 Jan 2008 18:00:17 +0000 (18:00 +0000)
git-svn-id: http://svn.parisson.org/svn/tools/trunk@32 457c0346-1240-4656-8a5a-9edca8063506

python-zopebackup/zope_instance.py

index f45a3e105355886582b19921cc115e44d7e91b35..611d9813e4903f2fedcc925ad80cc8663bce0851 100644 (file)
@@ -78,9 +78,10 @@ class ZopeInstance(ZopeInstall):
         if not os.path.exists(path):
             os.makedirs(path)
         if os.path.exists(self.instance_data):
-            command = self.repozo +' -Bvz -r ' + path + ' -f ' + self.instance_data
+            command = 'export PYTHONPATH='+ self.zope_main_dir + os.sep + 'zope' + self.version + os.sep + \
+                     'lib/python/ && '+ self.repozo +' -Bvz -r ' + path + ' -f ' + self.instance_data
             os.system(command)
-            command = 'chmod 700 ' + path + os.sep + '*'
+            command = 'chmod -R 700 ' + path + os.sep
             os.system(command)
         else:
             print self.instance_data + ' does not exists !'