use stdpython :: * ; fn __module_init__ () -> Result < () , PyException > { print_parts (& [py_display (& ("Current directory:")) , py_display (& (os :: getcwd () . unwrap ()))] , " " , "\n") ; print_parts (& [py_display (& ("Python executable:")) , py_display (& ((* sys :: executable)))] , " " , "\n") ; Ok (()) } fn main () { if let Err (e) = __module_init__ () { eprintln ! ("{}" , e) ; std :: process :: exit (1) ; } }