comparison src/core/constants.py @ 1111:9344e4542f26

core (constants): removed pyjamas workaround
author Goffi <goffi@goffi.org>
date Wed, 20 Aug 2014 22:59:33 +0200
parents 6bdcaeafca11
children e51e69b7732d
comparison
equal deleted inserted replaced
1110:36c1bbb8ca24 1111:9344e4542f26
15 # GNU Affero General Public License for more details. 15 # GNU Affero General Public License for more details.
16 16
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 try: 20 from xdg import BaseDirectory
21 import __pyjamas__ # do not import xdg when building Libervia 21 if BaseDirectory is not None:
22 BaseDirectory = None
23 except ImportError:
24 from os.path import expanduser, realpath 22 from os.path import expanduser, realpath
25 from xdg import BaseDirectory
26 23
27 24
28 class Const(object): 25 class Const(object):
29 26
30 ## Application ## 27 ## Application ##