Now using absolute path

This commit is contained in:
Maximilian Giller 2019-04-13 19:30:15 +02:00
parent 242e7acd09
commit c33a34f9d8

View file

@ -5,7 +5,7 @@ from settings import font_boldness
import os
im_open = Image.open
path = os.path.dirname(os.path.relpath(__file__)).replace("\\", "/")
path = os.path.dirname(os.path.abspath(__file__)).replace("\\", "/")
if path != "" and path[-1] != "/":
path += "/"