]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blob - helpers/__init__.py
Make kivy compatible with pyinstaller
[perso/Immae/Projets/Python/MusicSampler.git] / helpers / __init__.py
1 # -*- coding: utf-8 -*-
2 import sys
3 import os
4
5 def path():
6 if getattr(sys, 'frozen', False):
7 return sys._MEIPASS + "/"
8 else:
9 path = os.path.dirname(os.path.realpath(__file__))
10 return path + "/../"
11