]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/commitdiff
Move kv file
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 26 Jun 2016 17:21:10 +0000 (19:21 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 26 Jun 2016 17:21:10 +0000 (19:21 +0200)
music_sampler.kv [moved from musicsampler.kv with 100% similarity]
music_sampler.py
music_sampler.spec

similarity index 100%
rename from musicsampler.kv
rename to music_sampler.kv
index a7faea24921b337e50e688164601276eb8ff36c5..81b96c4c29d32ea45498109e28548e2d40e19602 100644 (file)
@@ -9,11 +9,7 @@ from kivy.core.window import Window
 from kivy.lang import Builder
 from helpers.key import Key
 from helpers.mapping import Mapping
-
-import sys
-
-if getattr(sys, 'frozen', False):
-    Builder.load_file(sys._MEIPASS + '/musicsampler.kv')
+import helpers
 
 class PlayList(RelativeLayout):
     playlist = ListProperty([])
@@ -67,4 +63,5 @@ class MusicSamplerApp(App):
         return Screen()
 
 if __name__ == '__main__':
+    Builder.load_file(helpers.path() + "/music_sampler.kv")
     MusicSamplerApp().run()
index a56c2dd0f051076f11b63c9a8e64b68a6594aa58..ef949f201fb8b6b30b397961b8e0b144145e007a 100644 (file)
@@ -8,7 +8,7 @@ a = Analysis(['music_sampler.py'],
              binaries=None,
              datas=[
               ('fonts/*', 'fonts'),
-              ('musicsampler.kv', '.')
+              ('music_sampler.kv', '.')
              ],
              hookspath=hookspath(),
              runtime_hooks=runtime_hooks(),