Do not try and preload imports that are relative.

This commit is contained in:
Calvin Rose 2021-01-07 18:07:47 -06:00
parent b9acb6dfa5
commit e403fb4652
1 changed files with 1 additions and 1 deletions

View File

@ -2670,7 +2670,7 @@
(module/add-paths "/init.janet" :source)
(module/add-paths ".janet" :source)
(module/add-paths ".jimage" :image)
(array/insert module/paths 0 [(fn is-cached [path] (if (in module/cache path) path)) :preload])
(array/insert module/paths 0 [(fn is-cached [path] (if (in module/cache path) path)) :preload check-is-dep])
# Version of fexists that works even with a reduced OS
(defn fexists