-- Like ModuleFilename but only return the directory path function ModuleDir() return PathDir(ModuleFilename()) end -- Strip ModuleDir() of the beginning of path function ModuleRelative(path) return string.gsub(path, "^" .. ModuleDir() .. "/", "") end -- Make the path relative to the current working directory -- and ModuleDir() function RelPath(path) return PathJoin(ModuleDir(), path) end