python-ast 1.0.2

A library for compiling Python to Rust
Documentation
1
2
3
4
5
6
7
8
9
10
use stdpython::*;

fn __module_init__() {
    print("Current directory:", &os::getcwd().unwrap_or_else(|_| "unknown".to_string()));
    print("Python executable:", &sys::executable);
}

fn main() {
    __module_init__();
}