core (constants): removed pyjamas workaround

This commit is contained in:
Goffi 2014-08-20 22:59:33 +02:00
commit 2af42b30c7

View file

@ -17,12 +17,9 @@
# You should have received a copy of the GNU Affero General Public License # 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/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
try: from xdg import BaseDirectory
import __pyjamas__ # do not import xdg when building Libervia if BaseDirectory is not None:
BaseDirectory = None
except ImportError:
from os.path import expanduser, realpath from os.path import expanduser, realpath
from xdg import BaseDirectory
class Const(object): class Const(object):