changeset 1111:9344e4542f26

core (constants): removed pyjamas workaround
author Goffi <goffi@goffi.org>
date Wed, 20 Aug 2014 22:59:33 +0200
parents 36c1bbb8ca24
children e51e69b7732d
files src/core/constants.py
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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 <http://www.gnu.org/licenses/>.
 
-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):