Skip to content

Commit

Permalink
fixed lunarmodules#53 where --lpath option doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Oct 22, 2012
1 parent 0b47cfc commit abe4e06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/busted.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ if "%cmd%"=="" (
if "%*"=="--help" set TRUE=1
if "%*"=="--version" set TRUE=1
if defined TRUE (
(call "%cmd%" "%~dp0busted_bootstrap" %*)
("%cmd%" "%~dp0busted_bootstrap" %*)
) else (
(call "%cmd%" "%~dp0busted_bootstrap" --cwd="%cwd%\\" %*)
("%cmd%" "%~dp0busted_bootstrap" --cwd="%cwd%\" %*)
exit /B %ERRORLEVEL%
)
)
1 change: 1 addition & 0 deletions bin/busted_bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ if args then
root_file = path..root_file

if #args.lpath > 0 then
lpathprefix = args.lpath
lpathprefix = lpathprefix:gsub("^%.[/%\\]", path )
lpathprefix = lpathprefix:gsub(";%.[/%\\]", ";" .. path)
package.path = (lpathprefix .. ";" .. package.path):gsub(";;",";")
Expand Down

0 comments on commit abe4e06

Please sign in to comment.