File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ private_vibescript.internal_main = function()
7070 if action == private_vibescript .SET_MODEL_AS_DEFAULT then
7171 return private_vibescript .set_model_as_default ()
7272 end
73- load_global_module (action )
73+ load_global_module (action , true )
7474end
7575
7676private_vibescript .main = function ()
Original file line number Diff line number Diff line change 1- load_global_module = function (script_name )
1+ load_global_module = function (script_name , is_main )
22
33 filename = script_name
44 local found_filename = false
@@ -33,8 +33,10 @@ load_global_module = function(script_name)
3333 end
3434 error (" File (" .. script_name .. " ) does not exist" ,0 )
3535 end
36-
36+
3737 script_dir_name = dtw .newPath (filename ).get_dir ()
38+ is_main_script = is_main
3839 dofile (filename )
40+ is_main_script = false
3941
4042end
You can’t perform that action at this time.
0 commit comments