1 |
#!/usr/bin/env python |
#!/usr/bin/env python |
2 |
# |
# |
3 |
|
# GNU Enterprise Application Server - Main Script |
4 |
|
# |
5 |
# Copyright 2001-2003 Free Software Foundation |
# Copyright 2001-2003 Free Software Foundation |
6 |
# |
# |
7 |
# This file is part of GNU Enterprise. |
# This file is part of GNU Enterprise. |
21 |
# write to the Free Software Foundation, Inc., 59 Temple Place |
# write to the Free Software Foundation, Inc., 59 Temple Place |
22 |
# - Suite 330, Boston, MA 02111-1307, USA. |
# - Suite 330, Boston, MA 02111-1307, USA. |
23 |
# |
# |
24 |
|
# $Id$ |
25 |
|
|
26 |
import os |
import os |
|
#import os.path |
|
27 |
import sys |
import sys |
28 |
|
|
29 |
__GNUEENV__ |
__GNUEENV__ |
30 |
|
|
31 |
if not os.environ.has_key('GNUE_CONNECTIONS'): |
if not os.environ.has_key ('GNUE_CONNECTIONS'): |
32 |
if os.path.isfile(INST_GNUE_CONNECTIONS): |
if os.path.isfile (INST_GNUE_CONNECTIONS): |
33 |
os.environ['GNUE_CONNECTIONS'] = INST_GNUE_CONNECTIONS |
os.environ ['GNUE_CONNECTIONS'] = INST_GNUE_CONNECTIONS |
|
|
|
|
from gnue.appserver.geasRpcServer import * |
|
34 |
|
|
35 |
if __name__ == '__main__': |
from gnue.appserver import geasRpcServer |
|
geas1 = geasRpcServerApp(); |
|
|
|
|
|
geas1.phaseInit(); |
|
36 |
|
|
37 |
geas1.run(); |
if __name__ == '__main__': |
38 |
|
server = geasRpcServer.geasRpcServerApp (); |
39 |
|
server.phaseInit (); |
40 |
|
server.run (); |