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
|
||||
# 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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue