mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix MRUBY_PACKAGE_DIR in mruby-config.bat
Previously, the correct directory could not be obtained in some environments. Therefore, changed the method to leave an element indicating the parent directory. fix #6156
This commit is contained in:
@@ -1,16 +1,6 @@
|
||||
@echo off
|
||||
|
||||
call :init "%~dp0."
|
||||
goto top
|
||||
|
||||
:init
|
||||
rem call init2 for treatments last directory separator
|
||||
call :init2 "%~dp1."
|
||||
goto :eof
|
||||
|
||||
:init2
|
||||
set MRUBY_PACKAGE_DIR=%~f1
|
||||
goto :eof
|
||||
set MRUBY_PACKAGE_DIR=%~dp0..
|
||||
|
||||
:top
|
||||
shift
|
||||
|
||||
Reference in New Issue
Block a user