web/webconfig.py
changeset 7380 5ad8b2f951ba
parent 7275 bb3bb8104134
child 7762 a3f9ba4d44eb
child 7770 a17145243e04
--- a/web/webconfig.py	Fri May 13 10:42:04 2011 +0200
+++ b/web/webconfig.py	Fri May 13 13:40:48 2011 +0200
@@ -300,7 +300,10 @@
         if not (self.repairing or self.creating):
             self.global_set_option('base-url', baseurl)
         httpsurl = self['https-url']
-        datadir_path = 'data/' if self.debugmode else 'data/%s/' % self.instance_md5_version()
+        if (self.debugmode or self.mode == 'test'):
+            datadir_path = 'data/'
+        else:
+            datadir_path = 'data/%s/' % self.instance_md5_version()
         if httpsurl:
             if httpsurl[-1] != '/':
                 httpsurl += '/'