tests: add more common patterns of os function usage in the -autofree test import_os_and_use_its_constants.v
parent
c3b8e5e181
commit
5e1782bf9c
|
@ -17,4 +17,22 @@ fn main() {
|
||||||
|
|
||||||
z := x + t
|
z := x + t
|
||||||
println(z)
|
println(z)
|
||||||
|
|
||||||
|
me := os.executable()
|
||||||
|
println(me)
|
||||||
|
|
||||||
|
me_realpath := os.real_path(me)
|
||||||
|
println(me_realpath)
|
||||||
|
|
||||||
|
exe_realpath := os.real_path(os.executable())
|
||||||
|
println(exe_realpath)
|
||||||
|
|
||||||
|
// exeparent_folder := os.dir(exe_realpath)
|
||||||
|
// println(exeparent_folder)
|
||||||
|
|
||||||
|
cdir := os.join_path(os.home_dir(), '.cache')
|
||||||
|
println(cdir)
|
||||||
|
|
||||||
|
wd_realpath := os.real_path(os.wd_at_startup)
|
||||||
|
println(wd_realpath)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue