mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os, filepath: reorganize functions
This commit is contained in:

committed by
Alexander Medvednikov

parent
6e130cd446
commit
dced76d1a4
@ -10,6 +10,7 @@ import (
|
||||
gg
|
||||
glm
|
||||
gl
|
||||
filepath
|
||||
)
|
||||
|
||||
#flag windows -I @VROOT/thirdparty/freetype/include
|
||||
@ -175,7 +176,7 @@ pub fn new_context(cfg gg.Cfg) &FreeType {
|
||||
}
|
||||
if !os.exists(font_path) {
|
||||
exe_path := os.executable()
|
||||
exe_dir := os.basedir(exe_path)
|
||||
exe_dir := filepath.basedir(exe_path)
|
||||
font_path = '$exe_dir/$font_path'
|
||||
}
|
||||
if !os.exists(font_path) {
|
||||
|
Reference in New Issue
Block a user