Skip to content

Instantly share code, notes, and snippets.

@timo
Created July 17, 2013 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/3976562cdf50eb045d98 to your computer and use it in GitHub Desktop.
Save timo/3976562cdf50eb045d98 to your computer and use it in GitHub Desktop.
diff --git a/src/vm/jvm/ModuleLoaderVMConfig.nqp b/src/vm/jvm/ModuleLoaderVMConfig.nqp
index ae6770c..b66dcdf 100644
--- a/src/vm/jvm/ModuleLoaderVMConfig.nqp
+++ b/src/vm/jvm/ModuleLoaderVMConfig.nqp
@@ -1,7 +1,10 @@
role Perl6::ModuleLoaderVMConfig {
method vm_search_paths() {
- # XXX TODO
- []
+ my @search_paths;
+ for nqp::jvmclasspaths() {
+ nqp::push(@search_paths, $_)
+ }
+ @search_paths;
}
# Locates files we could potentially load for this module.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment