mirror of
https://github.com/jlengrand/Ivolution.git
synced 2026-03-10 08:21:18 +00:00
20 lines
504 B
Python
Executable File
20 lines
504 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import wx
|
|
import os
|
|
from ivolution.gui import IvolutionWindow
|
|
|
|
# Trying to create personal folder if needed
|
|
dir = os.path.join(os.path.expanduser("~"), ".ivolution")
|
|
if not os.path.exists(dir):
|
|
os.makedirs(dir)
|
|
|
|
# Trying to create log file if needed
|
|
myfile = os.path.join(dir, 'ivolution.log')
|
|
if not os.path.isfile(myfile):
|
|
file(myfile, 'w').close()
|
|
|
|
app = wx.App(False)
|
|
frame = IvolutionWindow.IvolutionWindow(None, "Ivolution Window")
|
|
app.MainLoop() # Runs application
|