def get_global(key):
 global _global_data
 if (_global_data is None):
  dirname = os.path.join(os.path.dirname(__file__))
  filename = os.path.join(dirname, 'global.dat')
  if (not os.path.isfile(filename)):
   _raise_no_data_error()
  with open(filename, 'rb') as fileobj:
   _global_data = pickle.load(fileobj)
 return _global_data.get(key, {})

def get_global ( key ) : global _global_data if ( _global_data is None ) : dirname = os . path . join ( os . path . dirname ( __file__ ) ) filename = os . path . join ( dirname , 'global.dat' ) if ( not os . path . isfile ( filename ) ) : _raise_no_data_error ( ) with open ( filename , 'rb' ) as fileobj : _global_data = pickle . load ( fileobj ) return _global_data . get ( key , { } )
return the dictionary for the given key in the global data .