Time Nick Message 01:35 MinetestBot 02[git] 04paramat -> 03minetest/minetest_game: Fix missing papyrus in savanna, add a dry dirt version 13db632b6 https://git.io/JvnxK (152020-02-09T01:34:17Z) 03:05 Oil_boi_ Hello, is there a way to detect the operating system? Doing require("library") does not work, then dofile(modpath.."/library") where the local $library variable is minetest.get_modpath(), does not work correctly on windows systems, because of the "\". So I was wondering if minetest had a global variable or function for this. I have searched the lua 03:05 Oil_boi_ api and have found nothing 03:12 Oil_boi_ Oop, for some reason I changed the dofile to dofile(path.."/library.lua") and it worked even though it did not before 04:11 DrFrankenstone DIR_DELIM is a keyword in lua that will give you the right slash for the OS 04:12 DrFrankenstone But yes, I just use forward slashes in dofile 04:41 DrFrankenstone [My mistake, DIR_DELIM isn't a lua keyworld, it's provided to lua by Minetest] 09:48 rubenwardy DrFrankenstone: dir delim is not needed 09:48 rubenwardy Lua correctly converts / to \ on Windows 09:48 rubenwardy File a bug for any MT functions which don't 10:06 est31 rubenwardy: btw windows for the most part can deal with / as separator already 10:06 est31 there are places where it can't like in \\?\ paths 10:06 est31 so prefferably you still add \ 10:07 est31 but it's not extremely important 11:23 Ingar windows handling // ? lol