global ceciliaPreferences if not os.path.isdir(TMP_PATH): os.mkdir(TMP_PATH) if not os.path.isfile(os.path.join(TMP_PATH,'.recent.txt')): f = open(os.path.join(TMP_PATH,'.recent.txt'), "w") f.close() if not os.path.isdir(AUTOMATION_SAVE_PATH): os.mkdir(AUTOMATION_SAVE_PATH) file = None if len(sys.argv) >= 2: file = sys.argv[1] csound = CsoundLib.Csound() CeciliaLib.setCsound(csound) app = CeciliaApp() wx.SetDefaultPyEncoding('utf-8') X,Y = wx.SystemSettings.GetMetric(wx.SYS_SCREEN_X), wx.SystemSettings.GetMetric(wx.SYS_SCREEN_Y) if CeciliaLib.getPlatform() == 'linux2': bmp = wx.Bitmap(os.path.join(RESOURCES_PATH, "Cecilia_splash.png"), wx.BITMAP_TYPE_PNG) sp = wx.SplashScreen(bitmap=bmp, splashStyle=wx.SPLASH_TIMEOUT, milliseconds=3000, parent=None) sp.Center() else: sp_y = Y/4 sp = CeciliaSplashScreen(None, sp_y) display = wx.Display() numDisp = display.GetCount() CeciliaLib.setNumDisplays(numDisp) print 'Numbers of displays:', numDisp displays = []