diff --git a/run/python3.run b/run/python3.run index ff03b84..093c14e 100644 --- a/run/python3.run +++ b/run/python3.run @@ -30,7 +30,10 @@ build { # Generate config # -set config { +proc rtc_start_attr { } { + if {[have_spec linux]} { return {ld="no"} } else { return "" } } + +install_config { @@ -48,7 +51,7 @@ set config { - + @@ -103,10 +106,8 @@ print("Hello again") - -} +} -install_config $config # # Boot modules diff --git a/src/app/python3/main.cc b/src/app/python3/main.cc index 01a8512..55500f0 100644 --- a/src/app/python3/main.cc +++ b/src/app/python3/main.cc @@ -76,12 +76,8 @@ struct Python::Main Py_SetPath(wbuf); } - if (_config.xml().has_attribute("verbose")) { - bool verbose; - _config.xml().attribute("verbose").value(&verbose); - if (verbose) - Py_VerboseFlag = 1; - } + if (_config.xml().attribute_value("verbose", false)) + Py_VerboseFlag = 1; //don't need the 'site' module Py_NoSiteFlag = 1;