From 7891767784f6636252c3c79e70e40a09726cbfc0 Mon Sep 17 00:00:00 2001 From: Le Stradic Paul <38794405+Milvintsiss@users.noreply.github.com> Date: Thu, 26 Nov 2020 23:13:18 +0100 Subject: [PATCH] Update platforms.md --- docs/content/en/docs/platforms.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/en/docs/platforms.md b/docs/content/en/docs/platforms.md index 9a8b3bc9..85450cad 100644 --- a/docs/content/en/docs/platforms.md +++ b/docs/content/en/docs/platforms.md @@ -100,10 +100,10 @@ void main() { DynamicLibrary _openOnLinux() { final script = File(Platform.script.toFilePath()); - final libraryNextToScript = File('${script.path}/sqlite3.so'); + final libraryNextToScript = File('${script.parent.path}/sqlite3.so'); return DynamicLibrary.open(libraryNextToScript.path); } // _openOnWindows could be implemented similarly by opening `sqlite3.dll` ``` -Be sure to use moor _after_ you set the platform-specific overrides. \ No newline at end of file +Be sure to use moor _after_ you set the platform-specific overrides.