changeset 2188:30a153cfa8f8

Make testwiki check in mkpagepacks windows-compatible.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Mon, 30 Apr 2007 12:27:03 +0200
parents 15c11fe8f6b2
children a37491dbb605
files MoinMoin/script/maint/mkpagepacks.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/maint/mkpagepacks.py	Sun Apr 29 23:51:38 2007 +0200
+++ b/MoinMoin/script/maint/mkpagepacks.py	Mon Apr 30 12:27:03 2007 +0200
@@ -142,7 +142,7 @@
         request = self.request
         request.form = request.args = request.setup_args()
 
-        if not ('tests/wiki' in request.cfg.data_dir and 'tests/wiki' in request.cfg.data_underlay_dir):
+        if not ('tests/wiki' in request.cfg.data_dir.replace("\\", "/") and 'tests/wiki' in request.cfg.data_underlay_dir.replace("\\", "/")):
             import sys
             print sys.path
             print "NEVER EVER RUN THIS ON A REAL WIKI!!! This must be run on a local testwiki."