diff --git a/mwclient/RELEASE-NOTES.txt b/mwclient/RELEASE-NOTES.txt index faa0af62a90d3e50649fa28516b1aea530d13f8f..f92262383e258c53f03ed9620f6de0a463b10bf6 100644 --- a/mwclient/RELEASE-NOTES.txt +++ b/mwclient/RELEASE-NOTES.txt @@ -10,6 +10,8 @@ Mwclient 0.6.4 is unreleased. * Added support for builtin json library * Handle badtoken once * Bug 2690034: Fix revision iteration +* Fix module conflict with simplejson-1.x by inserting mwclient path at the + beginning of sys.path instead of the end == Changes in version 0.6.3 == * Added domain parameter to login. diff --git a/mwclient/__init__.py b/mwclient/__init__.py index ef0f6b239130ca7f93e20ad63d8792bafae17118..afed31796d2da685a716aa14c7d5e4c7f9467281 100644 --- a/mwclient/__init__.py +++ b/mwclient/__init__.py @@ -26,7 +26,7 @@ import sys as _sys import os as _os _path = _os.path.dirname(__file__) -_sys.path.append(_os.path.abspath(_path)) +_sys.path.insert(0, _os.path.abspath(_path)) from errors import * from client import Site, __ver__