# Path: orbkit/options.py
# def get_options():
# def init_parser():
#   def default_if_called(option, opt, value, parser, default=1e4):
# def raise_error(string,error=IOError):
# def print_message(string):
# def check_options(error=raise_error,display=print_message,
#                   interactive=False,info=True,check_io=True):
#   def check_mo(attr):
# def check_if_exists(fid, what='',error=IOError,display=sys.stdout.write,
#                 interactive=False):
# def check_grid_output_compatibilty(error=raise_error): 


from orbkit import options
from os import remove,path
import platform
  import resource
# -*- coding: iso-8859-1 -*-
'''Module for writing the .oklog files and printing the terminal output.'''

is_linux = (platform.system() == 'Linux')
if is_linux:

is_initiated = False #: If True, logfile is initialized.
log_fid = None #: Specifies the filename of the oklog file

def init_display(name=None):
  '''Sets the name of the .oklog file and removes the old .oklog file.'''
  global log_fid,is_initiated
  if name is not None or name != '':
    log_fid = '%s.oklog' % name if not name.endswith('.oklog') else name

# Path: orbkit/options.py
# def get_options():
# def init_parser():
#   def default_if_called(option, opt, value, parser, default=1e4):
# def raise_error(string,error=IOError):
# def print_message(string):
# def check_options(error=raise_error,display=print_message,
#                   interactive=False,info=True,check_io=True):
#   def check_mo(attr):
# def check_if_exists(fid, what='',error=IOError,display=sys.stdout.write,
#                 interactive=False):
# def check_grid_output_compatibilty(error=raise_error): 


# Path: orbkit/display.py
from orbkit import options
from os import remove,path
import platform
  import resource

# -*- coding: iso-8859-1 -*-
'''Module for writing the .oklog files and printing the terminal output.'''

is_linux = (platform.system() == 'Linux')
if is_linux:

is_initiated = False #: If True, logfile is initialized.
log_fid = None #: Specifies the filename of the oklog file

def init_display(name=None):
  '''Sets the name of the .oklog file and removes the old .oklog file.'''
  global log_fid,is_initiated
  if name is not None or name != '':
    log_fid = '%s.oklog' % name if not name.endswith('.oklog') else name

  if (not options.no_log) or log_fid is not None: