From 174bdc37b9194a3a76f720c15cf7c6a2e486a7ac Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Mon, 21 Sep 2009 19:04:41 +0200 Subject: [PATCH] load_bytecode with an absolute path. Avoid conflict between : Test/More.pbc (compiler from Lua) and parrot/library/Test/More.pbc --- src/lib/luaaux.pir | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/luaaux.pir b/src/lib/luaaux.pir index cf2ee35..95bd125 100644 --- a/src/lib/luaaux.pir +++ b/src/lib/luaaux.pir @@ -692,6 +692,10 @@ This function only loads the chunk; it does not run it. pbcname .= '.pbc' $I0 = stat pbcname, .STAT_EXISTS unless $I0 goto L3 + new $P0, 'OS' + $S0 = $P0.'cwd'() + $S0 .= '/' + pbcname = $S0 . pbcname load_bytecode pbcname .local string funcname funcname = mkfuncname(modname)