diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-26 19:21:10 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-26 19:21:10 +0200 |
commit | e4846541aa226de8b231cc401fcaa6f058246d1c (patch) | |
tree | 6d35ffa3838142e348586869357251e2bf771876 | |
parent | f029e879b326c3b3dce3428561a280fa52b9f04c (diff) | |
download | MusicSampler-e4846541aa226de8b231cc401fcaa6f058246d1c.tar.gz MusicSampler-e4846541aa226de8b231cc401fcaa6f058246d1c.tar.zst MusicSampler-e4846541aa226de8b231cc401fcaa6f058246d1c.zip |
Move kv file
-rw-r--r-- | music_sampler.kv (renamed from musicsampler.kv) | 0 | ||||
-rw-r--r-- | music_sampler.py | 7 | ||||
-rw-r--r-- | music_sampler.spec | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/musicsampler.kv b/music_sampler.kv index 4a44069..4a44069 100644 --- a/musicsampler.kv +++ b/music_sampler.kv | |||
diff --git a/music_sampler.py b/music_sampler.py index a7faea2..81b96c4 100644 --- a/music_sampler.py +++ b/music_sampler.py | |||
@@ -9,11 +9,7 @@ from kivy.core.window import Window | |||
9 | from kivy.lang import Builder | 9 | from kivy.lang import Builder |
10 | from helpers.key import Key | 10 | from helpers.key import Key |
11 | from helpers.mapping import Mapping | 11 | from helpers.mapping import Mapping |
12 | 12 | import helpers | |
13 | import sys | ||
14 | |||
15 | if getattr(sys, 'frozen', False): | ||
16 | Builder.load_file(sys._MEIPASS + '/musicsampler.kv') | ||
17 | 13 | ||
18 | class PlayList(RelativeLayout): | 14 | class PlayList(RelativeLayout): |
19 | playlist = ListProperty([]) | 15 | playlist = ListProperty([]) |
@@ -67,4 +63,5 @@ class MusicSamplerApp(App): | |||
67 | return Screen() | 63 | return Screen() |
68 | 64 | ||
69 | if __name__ == '__main__': | 65 | if __name__ == '__main__': |
66 | Builder.load_file(helpers.path() + "/music_sampler.kv") | ||
70 | MusicSamplerApp().run() | 67 | MusicSamplerApp().run() |
diff --git a/music_sampler.spec b/music_sampler.spec index a56c2dd..ef949f2 100644 --- a/music_sampler.spec +++ b/music_sampler.spec | |||
@@ -8,7 +8,7 @@ a = Analysis(['music_sampler.py'], | |||
8 | binaries=None, | 8 | binaries=None, |
9 | datas=[ | 9 | datas=[ |
10 | ('fonts/*', 'fonts'), | 10 | ('fonts/*', 'fonts'), |
11 | ('musicsampler.kv', '.') | 11 | ('music_sampler.kv', '.') |
12 | ], | 12 | ], |
13 | hookspath=hookspath(), | 13 | hookspath=hookspath(), |
14 | runtime_hooks=runtime_hooks(), | 14 | runtime_hooks=runtime_hooks(), |