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:
dearblue
2024-02-17 11:14:57 +09:00
parent 4855e50cbe
commit 06e791e1d7
+1 -11
View File
@@ -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