aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2019-06-19 00:29:05 -0400
committerCalvin Rose <calsrose@gmail.com>2019-06-19 00:34:15 -0400
commit264c5bc02b5e4b71a56fbb4efb706d892650bfd3 (patch)
tree04664b8511acba37ec904e0d1e7c42ec36fa232d
parentUpdate module system. (diff)
Change default module/path.
Disallow loading directly with extension to be more consistent and keep things simpler.
-rw-r--r--src/boot/boot.janet17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/boot/boot.janet b/src/boot/boot.janet
index d9234821..43f83189 100644
--- a/src/boot/boot.janet
+++ b/src/boot/boot.janet
@@ -1590,22 +1590,17 @@
from searching that path template if the filter doesn't match the input
path. The filter can be a string or a predicate function, and
is often a file extension, including the period."
- @[# Full or relative paths, including extensions
- [":all:" :native nati]
- [":all:" :image ".jimage"]
- [":all:" :source ".janet"]
-
- # Relative to (dyn :current-file "./."). Path must start with .
+ @[# Relative to (dyn :current-file "./."). Path must start with .
[":cur:/:all:.janet" :source check-.]
[":cur:/:all:/init.janet" :source check-.]
[":cur:/:all:.jimage" :image check-.]
[(string ":cur:/:all:" nati) :native check-.]
- # Relative to current dir (os/cwd)
- ["./:all:.janet" :source]
- ["./:all:/init.janet" :source]
- ["./:all:.jimage" :image]
- [(string "./:all:" nati) :native]
+ # As a path from (os/cwd)
+ [":all:.janet" :source]
+ [":all:/init.janet" :source]
+ [":all:.jimage" :image]
+ [(string ":all:" nati) :native]
# System paths
[":sys:/:all:.janet" :source]