diff --git a/wikstraktor.py b/wikstraktor.py
index 07853b23cf87097e0d6c8598eb9cbc31ddc2d186..0a00a045354216ee487d40c3421290d7fdfd8f53 100755
--- a/wikstraktor.py
+++ b/wikstraktor.py
@@ -4,8 +4,10 @@ import wikitextparser
 import importlib
 import json
 #version
+import pathlib
+the_path = pathlib.Path(__file__).parent.resolve()
 import git
-the_version = git.Repo(search_parent_directories=True).head.object.hexsha
+the_version = git.Repo(the_path).head.object.hexsha
 #logging
 from wikstraklog import Wikstraklog
 
@@ -537,7 +539,7 @@ class ParserContext:
 
 class Wikstraktor:
 	@classmethod
-	def get_instance(cls, wiki_language, entry_language, logfile="wikstraktor.sqlite"):
+	def get_instance(cls, wiki_language, entry_language, logfile=str(the_path)+"/wikstraktor.sqlite"):
 		try:
 			m_name = f"{wiki_language}_{entry_language}".capitalize()
 			instance = getattr(importlib.import_module(f"parsers.{m_name.lower()}"), f"{m_name}_straktor")()