Skip to content

Commit

Permalink
Fixed up some glib cruft workarounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan-R committed Jun 12, 2016
1 parent 687393b commit 3dc4128
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cma/cma.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,13 @@
#
################################################################################
'''
import os
# This works around a bug in the glib library...
os.environ['G_SLICE'] = 'always-malloc'
# This works around a stupidity in the glib library...
os.environ['G_MESSAGES_DEBUG'] = 'all'
import sys
import os, signal
import signal
import optparse, traceback
import importlib
#import atexit
Expand Down Expand Up @@ -138,10 +143,6 @@ def main():
if py2neo_major_version not in SUPPORTED_PY2NEO_VERSIONS:
raise EnvironmentError('py2neo version %s not supported' % PY2NEO_VERSION)
DefaultPort = 1984
# This works around a bug in the glib library...
os.environ['G_SLICE'] = 'always-malloc'
# This works around a stupidity in the glib library...
os.environ['G_MESSAGES_DEBUG'] = 'all'
# VERY Linux-specific - but useful and apparently correct ;-)
PrimaryIPcmd = \
"ip address show primary scope global | grep '^ *inet' | sed -e 's%^ *inet *%%' -e 's%/.*%%'"
Expand Down

0 comments on commit 3dc4128

Please sign in to comment.