This removes paths which are duplicate and with double slashes.
Also the module search path is now same as in Linux environment.
The paths can be retrieved using these two lua code
print("package.path: "..package.path)
print("package.cpath: "..package.cpath)
The removed paths as like this
* package path:
C:\msys64\ucrt64\bin\..\share\lua\5.3\\?.lua;
C:\msys64\ucrt64\bin\..\share\lua\5.3\\?\init.lua;
* package cpath:
C:\msys64\ucrt64\bin\..\lib\lua\5.3\..\lib\lua\5.3\\?.dll
881 B
881 B