aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-06-26 19:21:10 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-06-26 19:21:10 +0200
commite4846541aa226de8b231cc401fcaa6f058246d1c (patch)
tree6d35ffa3838142e348586869357251e2bf771876
parentf029e879b326c3b3dce3428561a280fa52b9f04c (diff)
downloadMusicSampler-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.py7
-rw-r--r--music_sampler.spec2
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
9from kivy.lang import Builder 9from kivy.lang import Builder
10from helpers.key import Key 10from helpers.key import Key
11from helpers.mapping import Mapping 11from helpers.mapping import Mapping
12 12import helpers
13import sys
14
15if getattr(sys, 'frozen', False):
16 Builder.load_file(sys._MEIPASS + '/musicsampler.kv')
17 13
18class PlayList(RelativeLayout): 14class PlayList(RelativeLayout):
19 playlist = ListProperty([]) 15 playlist = ListProperty([])
@@ -67,4 +63,5 @@ class MusicSamplerApp(App):
67 return Screen() 63 return Screen()
68 64
69if __name__ == '__main__': 65if __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(),