testpy: os.Getcwd
This commit is contained in:
@@ -4,9 +4,12 @@ import (
|
||||
"github.com/goplus/llgo/c"
|
||||
"github.com/goplus/llgo/py"
|
||||
"github.com/goplus/llgo/py/math"
|
||||
"github.com/goplus/llgo/py/os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
x := math.Sqrt(py.Float(2))
|
||||
wd := os.Getcwd()
|
||||
c.Printf(c.Str("sqrt(2) = %f\n"), x.Float64())
|
||||
c.Printf(c.Str("cwd = %s\n"), wd.CStr())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user