Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
load_bytecode with an absolute path.
Browse files Browse the repository at this point in the history
Avoid conflict between :
  Test/More.pbc (compiler from Lua)
and
  parrot/library/Test/More.pbc
  • Loading branch information
fperrad committed Sep 21, 2009
1 parent cf55054 commit 174bdc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/luaaux.pir
Expand Up @@ -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)
Expand Down

0 comments on commit 174bdc3

Please sign in to comment.