Module Import alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Lambda arguments args NameParam defaults BinOpMod Str NameLoad NameLoad Return BinOpMod Str Call AttributeLoad Str attr NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Dict NameLoad ListLoad Str Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign SubscriptStore NameLoad Index Str ListLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If CompareEq SubscriptLoad NameLoad Slice NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Slice NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If UnaryOpNot CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq SubscriptLoad NameLoad Index Num BinOpMod Str NameLoad body Delete SubscriptDel NameLoad Index Num Assign NameStore Call AttributeLoad Str attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call NameLoad AttributeLoad NameLoad attr Slice Num Num Assign NameStore BinOpAdd ListLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore AttributeLoad NameLoad attr
N/A N/A os pyjs linker pyjs util N/A PLATFORM pyv8 N/A APP_TEMPLATE 
var $wnd = new Object();
$wnd.document = new Object();
var $doc = $wnd.document;
var $moduleName = "%(app_name)s";
var $pyjs = new Object();
var $p = null;
$pyjs.__modules__ = {};
$pyjs.modules = {};
$pyjs.modules_hash = {};
$pyjs.available_modules = %(available_modules)s;
$pyjs.loaded_modules = {};
$pyjs.options = new Object();
$pyjs.options.set_all = function (v) {
    $pyjs.options.arg_ignore = v;
    $pyjs.options.arg_count = v;
    $pyjs.options.arg_is_instance = v;
    $pyjs.options.arg_instance_type = v;
    $pyjs.options.arg_kwarg_dup = v;
    $pyjs.options.arg_kwarg_unexpected_keyword = v;
    $pyjs.options.arg_kwarg_multiple_values = v;
};
$pyjs.options.set_all(true);
$pyjs.trackstack = [];
$pyjs.track = {module:'__main__', lineno: 1};
$pyjs.trackstack.push($pyjs.track);
$pyjs.__last_exception_stack__ = null;
$pyjs.__last_exception__ = null;

/*
 * prepare app system vars
 */
$pyjs.platform = 'pyv8';
$pyjs.appname = '%(app_name)s';
$pyjs.loadpath = './';

pyv8_load(%(module_files)s);

pyv8_load(%(js_lib_files)s);

/* late static js libs */

%(late_static_js_libs)s


//try {
    $p = $pyjs.loaded_modules['pyjslib'];
    $p('pyjslib');
    $pyjs.__modules__.pyjslib = $p['pyjslib']
    $pyjs.loaded_modules['pyjslib'].___import___('%(app_name)s', '%(app_name)s', '__main__');
//} catch(exception)
//{
//    var fullMessage = exception.name + ': ' + exception.message;
//    var uri = exception.fileName;
//    //var stack = exception.stack;
//    var line = exception.lineNumber;
//    fullMessage += "\n at " + uri + ": " + line;
//    print (fullMessage );
//    //print (stack.toString() );
//}
 tostrlist N/A N/A l N/A N/A N/A l N/A map N/A N/A N/A x N/A N/A '%s' x l N/A N/A [%s] N/A N/A ,  join l N/A PyV8Linker N/A N/A linker BaseLinker N/A N/A PyV8 linker, which links together files by using the
    load function of the spidermonkey shell. N/A platform_parents N/A PLATFORM N/A mozilla array_extras __init__ N/A N/A self N/A args kwargs N/A N/A N/A kwargs N/A platforms N/A PLATFORM N/A N/A N/A N/A super PyV8Linker self __init__ args kwargs N/A visit_start N/A N/A self N/A N/A N/A N/A N/A N/A super PyV8Linker self visit_start N/A N/A N/A N/A self js_libs append _pyjs.js N/A N/A self merged_public N/A set N/A merge_resources N/A N/A self dir_name N/A N/A N/A find the absolute paths of js includes N/A N/A N/A N/A self js_libs N/A dir_name N/A self merged_public N/A N/A N/A public_folder N/A N/A N/A os path join dir_name public N/A N/A N/A N/A N/A os path isdir public_folder N/A N/A N/A N/A i js_lib N/A enumerate N/A self js_libs N/A N/A p N/A N/A N/A os path join public_folder js_lib N/A N/A N/A N/A os path isfile p N/A N/A N/A N/A self js_libs N/A i p N/A visit_end N/A N/A self N/A N/A static_code N/A N/A libs msg N/A None N/A N/A code N/A N/A lib libs N/A N/A fname lib N/A N/A N/A N/A N/A os path isfile fname N/A N/A fname N/A N/A N/A os path join N/A self output lib N/A N/A N/A N/A N/A os path isfile fname N/A N/A N/A RuntimeError N/A File not found %r lib N/A N/A N/A fname N/A len_ouput_dir N/A self output N/A N/A name N/A fname N/A len_ouput_dir N/A N/A name N/A N/A N/A os path basename lib N/A N/A N/A msg None N/A N/A N/A N/A code append N/A /* start %s: %s */ N/A msg name N/A f N/A file fname N/A N/A N/A code append N/A N/A f read N/A N/A N/A msg None N/A N/A N/A N/A code append N/A /* end %s */ N/A name N/A N/A N/A self remove_files N/A fname True N/A fname N/A N/A fname split . N/A N/A N/A fname N/A -2 N/A __%s__ platform_name N/A N/A N/A fname N/A -2 N/A fname N/A N/A . join fname N/A N/A N/A N/A os path isfile fname N/A N/A N/A N/A self remove_files N/A fname True N/A N/A N/A join code N/A N/A done N/A N/A self done N/A PLATFORM N/A module_files N/A tostrlist done N/A js_lib_files N/A tostrlist N/A self js_libs N/A early_static_js_libs N/A N/A str N/A self js_libs N/A 1 -1 N/A late_static_js_libs N/A N/A N/A self late_static_js_libs N/A late_static_js_libs N/A static_code late_static_js_libs javascript lib N/A app_name N/A self top_module N/A available_modules N/A N/A self visited_modules N/A PLATFORM N/A N/A self out_file_mod N/A N/A N/A os path join N/A self output N/A N/A self top_module .js N/A out_file N/A open N/A self out_file_mod w N/A N/A N/A out_file write N/A APP_TEMPLATE N/A locals N/A N/A N/A out_file close N/A N/A N/A add_linker_options N/A linker add_linker_options