diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-26 00:18:52 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-26 00:18:52 +0200 |
commit | bb69f62e140efde8e93f7b62bf8723113bf30b06 (patch) | |
tree | f1426515f90010e21b3832351c604a028c788a05 /helpers | |
parent | 4b2d79ca27dcbb85465829595ad81cec5fc63983 (diff) | |
download | MusicSampler-bb69f62e140efde8e93f7b62bf8723113bf30b06.tar.gz MusicSampler-bb69f62e140efde8e93f7b62bf8723113bf30b06.tar.zst MusicSampler-bb69f62e140efde8e93f7b62bf8723113bf30b06.zip |
Make kivy compatible with pyinstaller
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/__init__.py | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ | |||
1 | # -*- coding: utf-8 -*- | 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 | |||