Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customconfig.py does not work #15

Open
ghost opened this issue Nov 25, 2015 · 1 comment
Open

customconfig.py does not work #15

ghost opened this issue Nov 25, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 25, 2015

Hi ,
I have a Wiki V 1.24.1 & Collection V 1.7.0.
I want to hide the "article source and contributors" in my rendered PDF's.
So I created customconfig.py in /usr/lib/python2.7/site-packages/mwlib/rl/ with this content:

#! /usr/bin/env python
#! -*- coding:utf-8 -*-

######### PAGE CONFIGURATION
show_article_attribution = False

But my changes doesn't work!
So I changed in /home/mwiki/.bashrc like this:

# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
       . /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
PATH="${PATH}:/usr/lib/python2.7/site-packages/mwlib/rl/"
export PATH
PYTHONPATH="${PYTHONPATH}:/usr/lib/python2.7/site-packages/mwlib/rl/"
export PYTHONPATH

But even this doesn't seem to work :-(
Maybe you can help. Any ideas?

regards
z3rano

@einfallstoll
Copy link

Does this give you an error?

python
from customconfig import *
print show_article_attribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant