3 # ###################################################
4 # Copyright (C) 2008 The OpenAnno Team
6 # This file is part of OpenAnno.
8 # OpenAnno is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the
20 # Free Software Foundation, Inc.,
21 # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 # ###################################################
28 if __name__
== '__main__':
29 #chdir to openanno root
30 os
.chdir( os
.path
.split( os
.path
.realpath( sys
.argv
[0]) )[0] )
32 #find fife and setup search paths
33 fife_path
= openanno
.getFifePath()
35 #for some external libraries distributed with openanno
36 os
.environ
['PYTHONPATH'] = os
.path
.pathsep
.join((os
.path
.abspath('editor'), os
.path
.abspath('game'), os
.path
.abspath('game/ext'), os
.environ
['PYTHONPATH']))
38 os
.chdir(fife_path
+ '/clients/editor')
40 args
= [sys
.executable
, './run.py']
41 os
.execvp(args
[0], args
)