Package jazzparser :: Package utils :: Module system
[hide private]
[frames] | no frames]

Module system

source code

Utilities relating to the system the software is running on.


Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>

Functions [hide private]
 
set_proc_title(title)
Tries to set the current process title.
source code
 
get_host_info_string()
Returns a string containing information to identify the system on which you're currently running.
source code
 
open_file(filename)
Tries to use a system-recommended application to open the given file.
source code
 
is_windows() source code
 
is_mac() source code
 
is_linux() source code
Variables [hide private]
  __package__ = 'jazzparser.utils'
Function Details [hide private]

set_proc_title(title)

source code 

Tries to set the current process title. This is very system-dependent and may fail in many cases.

Returns:
True if the process succeeds, False if there's an error

get_host_info_string()

source code 

Returns a string containing information to identify the system on which you're currently running. This is useful to logging info. Don't try matching against it - you'll be better off getting the components separately.

open_file(filename)

source code 

Tries to use a system-recommended application to open the given file. Uses xdg-open on Linux, start on Windows and open on Mac.