core (constants): removed pyjamas workaround
This commit is contained in:
parent
41101b480d
commit
2af42b30c7
1 changed files with 2 additions and 5 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue