mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: merge with filepath
This commit is contained in:
@@ -2,14 +2,13 @@ module main
|
||||
|
||||
import (
|
||||
os
|
||||
filepath
|
||||
v.pref
|
||||
)
|
||||
|
||||
fn main() {
|
||||
println('V Self Compiling...')
|
||||
vexe := pref.vexe_path()
|
||||
vroot := filepath.dir(vexe)
|
||||
vroot := os.dir(vexe)
|
||||
os.chdir(vroot)
|
||||
s2 := os.exec('$vexe -o v2 cmd/v') or {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user