1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: realpath => real_path

This commit is contained in:
yuyi
2020-03-20 23:41:18 +08:00
committed by GitHub
parent 5f32663714
commit 2f27758a4b
30 changed files with 71 additions and 71 deletions

View File

@ -22,8 +22,8 @@ pub fn full_path_to_v(dirs_in int) string {
vexec := os.join_path(path, vname)
/*
args := os.args
vreal := os.realpath('v')
myself := os.realpath( os.executable() )
vreal := os.real_path('v')
myself := os.real_path( os.executable() )
wd := os.getwd()
println('args are: $args')
println('vreal : $vreal')
@ -56,9 +56,9 @@ pub fn run_repl_file(wd string, vexec string, file string) ?string {
fname := os.file_name( file )
input_temporary_filename := os.realpath(os.join_path( wd, 'input_temporary_filename.txt'))
input_temporary_filename := os.real_path(os.join_path( wd, 'input_temporary_filename.txt'))
os.write_file(input_temporary_filename, input)
os.write_file( os.realpath(os.join_path( wd, 'original.txt' ) ), fcontent )
os.write_file( os.real_path(os.join_path( wd, 'original.txt' ) ), fcontent )
rcmd := '"$vexec" repl -replfolder "$wd" -replprefix "${fname}." < $input_temporary_filename'
r := os.exec(rcmd) or {
os.rm(input_temporary_filename)