Module Expr Str Import alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad Call AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad FunctionDef arguments args defaults body TryExcept body Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A This is the main file you run to start a pinball machine. N/A logging datetime datetime N/A socket N/A os N/A argparse N/A errno N/A version N/A sys mpf.system.machine MachineController mpf.system.utility_functions Util N/A parser N/A N/A argparse ArgumentParser description Starts the MPF core engine N/A N/A N/A parser add_argument machine_path help Path of the machine folder. N/A N/A N/A parser add_argument -c action store dest configfile default config metavar config_file help The name of a config file to load. Default is config.yaml. Multiple files can be used via a comma-separated list (no spaces between) N/A N/A N/A parser add_argument -v action store_const dest loglevel const N/A logging DEBUG default N/A logging INFO help Enables verbose logging to the log file N/A N/A N/A parser add_argument -V action store_true dest consoleloglevel default N/A logging INFO help Enables verbose logging to the console. Do NOT on Windows platforms. Must also use -v for this to work. N/A N/A N/A parser add_argument -x action store_const dest force_platform const virtual help Forces the virtual platform to be used for all devices N/A N/A N/A parser add_argument -X action store_const dest force_platform const smart_virtual help Forces the smart virtual platform to be used for all devices N/A N/A N/A parser add_argument -b action store_false dest bcp default True help Runs MPF without making a connection attempt to a BCP Server N/A N/A N/A parser add_argument -l action store dest logfile metavar file_name default N/A N/A N/A os path join logs N/A N/A N/A N/A datetime now strftime N/A N/A %Y-%m-%d-%H-%M-%S-mpf- N/A N/A socket gethostname .log help The name (and path) of the log file N/A N/A N/A parser add_argument -C action store dest mpfconfigfile default N/A N/A N/A os path join mpf mpfconfig.yaml metavar config_file help The MPF framework default config file. Default is mpf/mpfconfig.yaml N/A N/A N/A parser add_argument --version action version version N/A version version_str help Displays the MPF, config file, and BCP version info and exits N/A args N/A N/A parser parse_args N/A N/A args configfile N/A N/A Util string_to_list N/A args configfile N/A N/A N/A N/A N/A os makedirs logs N/A N/A N/A OSError N/A exception N/A N/A N/A N/A exception errno N/A errno EEXIST N/A N/A N/A N/A N/A logging basicConfig level N/A args loglevel format %(asctime)s : %(levelname)s : %(name)s : %(message)s filename N/A args logfile filemode w N/A console N/A N/A logging StreamHandler N/A N/A N/A console setLevel N/A args consoleloglevel N/A formatter N/A N/A logging Formatter %(levelname)s : %(name)s : %(message)s N/A N/A N/A console setFormatter formatter N/A N/A N/A N/A N/A logging getLogger addHandler console main N/A N/A N/A N/A N/A N/A N/A machine N/A MachineController N/A vars args N/A N/A N/A machine run N/A N/A N/A logging info MPF run loop ended. N/A N/A N/A Exception N/A e N/A N/A N/A N/A logging exception e N/A N/A N/A sys exit N/A N/A N/A __name__ __main__ N/A N/A N/A main