mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
os, filepath: reorganize functions
This commit is contained in:
parent
6e130cd446
commit
dced76d1a4
28 changed files with 174 additions and 98 deletions
|
@ -28,7 +28,7 @@ mut:
|
|||
fn generate_vh(mod string) {
|
||||
println('\n\n\n\nGenerating a V header file for module `$mod`')
|
||||
vexe := vexe_path()
|
||||
full_mod_path := filepath.join(os.dir(vexe),mod)
|
||||
full_mod_path := filepath.join(filepath.dir(vexe),mod)
|
||||
dir := if mod.starts_with('vlib') { '$compiler.v_modules_path${os.path_separator}$mod' } else { mod }
|
||||
path := dir + '.vh'
|
||||
pdir := dir.all_before_last(os.path_separator)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue