From bb69f62e140efde8e93f7b62bf8723113bf30b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 26 Jun 2016 00:18:52 +0200 Subject: Make kivy compatible with pyinstaller --- helpers/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'helpers') diff --git a/helpers/__init__.py b/helpers/__init__.py index 40a96af..70667fd 100644 --- a/helpers/__init__.py +++ b/helpers/__init__.py @@ -1 +1,11 @@ # -*- coding: utf-8 -*- +import sys +import os + +def path(): + if getattr(sys, 'frozen', False): + return sys._MEIPASS + "/" + else: + path = os.path.dirname(os.path.realpath(__file__)) + return path + "/../" + -- cgit v1.2.3