mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: fix os import by default in v scripts
This commit is contained in:
parent
22e7e807f3
commit
4932a32d91
@ -560,7 +560,8 @@ pub fn (v mut V) add_v_files_to_compile() {
|
|||||||
v.log('imports0:')
|
v.log('imports0:')
|
||||||
println(v.table.imports)
|
println(v.table.imports)
|
||||||
println(v.files)
|
println(v.files)
|
||||||
p.import_table.register_alias('os', 'os', 0)
|
p.import_table.register_import('os', 0)
|
||||||
|
v.table.file_imports[p.file_path_id] = p.import_table
|
||||||
p.table.imports << 'os'
|
p.table.imports << 'os'
|
||||||
p.table.register_module('os')
|
p.table.register_module('os')
|
||||||
println('got v script')
|
println('got v script')
|
||||||
|
Loading…
Reference in New Issue
Block a user