Re: File paths: I've tried everything
Posted: Thu Apr 08, 2021 12:43 pm
love.filesystem.getWorkingDirectory() tells you what the current directory is (what ./ is)-
Code: Select all
sqlite3 = require("lsqlite3");
Code: Select all
package.cpath = love.filesystem.getSourceBaseDirectory() .. "/*.dll;" .. package.cpath
sqlite3 = require 'lsqlite3'
Unfortunately, that's not right. The "." in a path always means the "current working directory" (called the "default directory" in DOS/Windows.)togFox wrote: ↑Thu Apr 08, 2021 12:45 pm On my machine:
D:/Program Files (x86)/Notepad++
(my love editor)
Am I right in saying that
should simply look in the same folder as the exe? I mean - I'm not overthinking that am I?Code: Select all
sqlite3 = require("lsqlite3");
Code: Select all
%~d0
cd %~dp0
"C:\Program Files\LOVE\love.exe" %~dp0 --console