]> CRI, Mines Paris - PSL - minwii.git/blobdiff - src/minwii/app.py
Expérimentations (concluantes) de hand tracking.
[minwii.git] / src / minwii / app.py
index a0fa9dac555e4d934abcac81dc4de3e10e8a20de..b9219aeb4f159bc7efc101c8a53bf5e7aa0daad9 100755 (executable)
@@ -39,8 +39,7 @@ class MinWii(object):
         self.wiimoteSupport = wiimoteSupport
         self.fullscreen = fullscreen
         LaunchScreen()
         self.wiimoteSupport = wiimoteSupport
         self.fullscreen = fullscreen
         LaunchScreen()
-        themedir = __file__.split(os.path.sep)[:-1] + ['widgets', 'data', 'minwii_theme']
-        themedir = os.path.sep.join(themedir)
+        themedir = os.path.join(os.path.dirname(__file__), 'widgets', 'data', 'minwii_theme')
         theme = Theme(themedir)
         self.app = Desktop(theme=theme)
         self.synth = Synth(driver=audioDriver)
         theme = Theme(themedir)
         self.app = Desktop(theme=theme)
         self.synth = Synth(driver=audioDriver)