summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/main.lua2
-rw-r--r--server/publish.lua4
-rw-r--r--server/test.lua2
3 files changed, 4 insertions, 4 deletions
diff --git a/server/main.lua b/server/main.lua
index d1673836..9ba8fc92 100644
--- a/server/main.lua
+++ b/server/main.lua
@@ -9,7 +9,7 @@ package.path = rootPath .. 'src/?.lua'
.. ';' .. rootPath .. 'src/?/init.lua'
local fs = require 'bee.filesystem'
-ROOT = fs.path(rootPath)
+ROOT = fs.absolute(fs.path(rootPath))
LANG = LANG or 'en-US'
--collectgarbage('generational')
diff --git a/server/publish.lua b/server/publish.lua
index b6750341..bc3588dd 100644
--- a/server/publish.lua
+++ b/server/publish.lua
@@ -10,8 +10,8 @@ package.path = rootPath .. 'src/?.lua'
local fs = require 'bee.filesystem'
local subprocess = require 'bee.subprocess'
-ROOT = fs.path(rootPath)
-EXTENSION = fs.path(rootPath .. '..')
+ROOT = fs.absolute(fs.path(rootPath))
+EXTENSION = fs.absolute(fs.path(rootPath .. '..'))
require 'utility'
local json = require 'json'
diff --git a/server/test.lua b/server/test.lua
index c1d128f1..7068b072 100644
--- a/server/test.lua
+++ b/server/test.lua
@@ -10,7 +10,7 @@ package.path = rootPath .. 'src/?.lua'
local fs = require 'bee.filesystem'
local subprocess = require 'bee.subprocess'
-ROOT = fs.path(rootPath)
+ROOT = fs.absolute(fs.path(rootPath))
local function runTest(root)
local is_macos = package.cpath:sub(-3) == '.so'