Hello list,

I've encountered a problem with nekotools server while playing around
with haXe. When I change the loader search path, the new path seems to
be ignored.

So I simply tried in Neko to load a module from a sub-directory
"./sub/mod.n":

var get_cwd = $loader.loadprim("[EMAIL PROTECTED]", 0);
$loader.path = $array(get_cwd()+"sub/", $loader.path);
$print($loader.path+"\n");
var module = $loader.loadmodule("mod", $loader);

With nekotools server, I get:

[/home/florent/temp/neko/sub/,[/usr/bin/,[/usr/lib/neko/,null]]]
Called from tools/WebServer.nml line 481
Called from tools/WebServer.nml line 454
Called from Test.neko line 4
Called from tools/WebServer.nml line 454
Exception : Neko_error(load.c(176) : Module not found : mod)

The printed search path is correct but mod.n is not found.

Changing the loader search path works fine with mod_neko. The problem is
only with nekotools.

I'm using neko 1.6.0 on Linux (x86_64), gcc 4.1.2

Thanks for any help!
Regards,
-- 
Florent

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to