Package: python-moinmoin Version: 1.9.4-8+deb7u1 Severity: normal Dear Maintainer,
the "moin" script is patched in Debian to default to the /etc/moin directory instead of the current directory when looking for the moin config (farmconfig.py or wikiconfig.py). If you need to use a different directory, you can pass the --config-dir option to the "moin" command. When you pass --config-dir=/foo, the first two entries in the pythonpath will be /foo, followed by /etc/moin. However, when looking for the config files, moinmoin first tries to import farmconfig and only if that fails tries to import wikiconfig. So if your /foo path only contains a wikiconfig, then the farmconfig will import the config from /etc/moin and there isn't really any way to actually make the command pick the right config. In a way, this is an upstream bug, since even without the Debian patch the same problem will occur (I think) when the current directory contains a farmconfig.py and you want to use /foo/wikiconfig.py. However, then you can just change your current directory to work around this. The Debian patch causes this problem to always occur (since it ships a farmconfig.py) and makes it impossible (AFAICS) to work around it. I would suggest to patch MoinScript.py, to only add /etc/moin to the pythonpath when --config-dir is _not_ specified. This should make the --config-dir option work as expected (or at least as good as the upstream version), I think. Gr. Matthijs -- System Information: Debian Release: 7.1 APT prefers stable APT policy: (990, 'stable'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.10-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-moinmoin depends on: ii python 2.7.3-4 ii python-parsedatetime 0.8.7-3 ii python-pygments 1.5+dfsg-1 ii python-recaptcha 1.0.6-1 ii python-werkzeug 0.8.3+dfsg-1 ii python2.6 2.6.8-1.1 ii python2.7 2.7.3-6 Versions of packages python-moinmoin recommends: ii fckeditor 1:2.6.6-3 ii nginx-httpd-cgi [httpd-cgi] 1 ii nullmailer [mail-transport-agent] 1:1.11-2 ii python-xapian 1.2.12-2 ii python-xappy 0.5-5 Versions of packages python-moinmoin suggests: pn antiword <none> pn catdoc <none> pn cifs-utils <none> pn docbook-dsssl <none> pn miscfiles | wordlist <none> pn poppler-utils | xpdf-utils <none> pn python-4suite-xml <none> pn python-docutils <none> pn python-flup <none> pn python-gdchart <none> pn python-ldap <none> pn python-mysqldb <none> pn python-openid <none> pn python-pyxmpp <none> pn python-tz <none> pn python-xml <none> -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org