# HG changeset patch # User Goffi # Date 1408568373 -7200 # Node ID 9344e4542f26911aae103c27dcadbd3c11924aae # Parent 36c1bbb8ca24f3bd5e1f7f55d60b02e4760453a5 core (constants): removed pyjamas workaround diff -r 36c1bbb8ca24 -r 9344e4542f26 src/core/constants.py --- a/src/core/constants.py Wed Aug 20 21:22:06 2014 +0200 +++ b/src/core/constants.py Wed Aug 20 22:59:33 2014 +0200 @@ -17,12 +17,9 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -try: - import __pyjamas__ # do not import xdg when building Libervia - BaseDirectory = None -except ImportError: +from xdg import BaseDirectory +if BaseDirectory is not None: from os.path import expanduser, realpath - from xdg import BaseDirectory class Const(object):