# Path: orbkit/display.py
# def display(string):
#   '''Prints :literal:`string` to the terminal output and to the .oklog file.'''
#   global log_fid
#   if not options.quiet:
#     print(string)
#   if not options.no_log:
#     if log_fid is None:
#       if options.outputname is None or options.outputname == '':
#         return
#       else:
#         log_fid = '%s.oklog' % options.outputname.split('@')[0]
#     if not is_initiated:
#       init_display(log_fid)
#     f = open(log_fid, 'a')
#     f.write('%s\n' % string)
#     f.close()


from orbkit.display import display
  from os import path,listdir
  from . import vmd_network_draft
  import linecache
    If True, exit vmd after rendering.
  iso : tuple
    Specifies the isovalue for the blue and the red isosurface, respectively.
  abspath : bool
    If True, the paths of the cube files will be expanded to absolute file paths.
  mo_options : strings
    Further commands to include in vmd script.
    
  **Example:**
  
  .. code-block::
  
    # create cube files
    extras.calc_mo(qc, active, otype=['vmd'], ofid=fname)

    # recreate vmd script
    mo_options = """
    rotate y by 90
    rotate x by 45
    rotate z by 0
    axes location off
    display distance 1
    """
    
    vmd_network_creator(fname, render=1, exit=1, mo_options=mo_options)
  '''
  
  filename += '.vmd' if not filename.endswith('vmd') else ''
  
  if cube_files is None:

# Path: orbkit/display.py
# def display(string):
#   '''Prints :literal:`string` to the terminal output and to the .oklog file.'''
#   global log_fid
#   if not options.quiet:
#     print(string)
#   if not options.no_log:
#     if log_fid is None:
#       if options.outputname is None or options.outputname == '':
#         return
#       else:
#         log_fid = '%s.oklog' % options.outputname.split('@')[0]
#     if not is_initiated:
#       init_display(log_fid)
#     f = open(log_fid, 'a')
#     f.write('%s\n' % string)
#     f.close()


# Path: orbkit/output/vmd.py
from orbkit.display import display
  from os import path,listdir
  from . import vmd_network_draft
  import linecache

    If True, exit vmd after rendering.
  iso : tuple
    Specifies the isovalue for the blue and the red isosurface, respectively.
  abspath : bool
    If True, the paths of the cube files will be expanded to absolute file paths.
  mo_options : strings
    Further commands to include in vmd script.
    
  **Example:**
  
  .. code-block::
  
    # create cube files
    extras.calc_mo(qc, active, otype=['vmd'], ofid=fname)

    # recreate vmd script
    mo_options = """
    rotate y by 90
    rotate x by 45
    rotate z by 0
    axes location off
    display distance 1
    """
    
    vmd_network_creator(fname, render=1, exit=1, mo_options=mo_options)
  '''
  
  filename += '.vmd' if not filename.endswith('vmd') else ''
  
  if cube_files is None:

    display('No list of cube (.cb or .cube) filenames provided. Checking the directory' +