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

os api: basedir => base_dir

This commit is contained in:
yuyi
2020-03-08 22:43:56 +08:00
committed by GitHub
parent 2bed0d1bb5
commit 23b11c84b1
8 changed files with 11 additions and 11 deletions

View File

@@ -204,7 +204,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 := os.base_dir(exe_path)
font_path = '$exe_dir/$font_path'
}
if !os.exists(font_path) {