forked from mixxit/solinia_depreciated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWorldServer.py
39 lines (26 loc) · 884 Bytes
/
WorldServer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright (C) 2004-2007 Prairie Games, Inc
# Please see LICENSE.TXT for details
import imp, os, sys
def main_is_frozen():
return (hasattr(sys, "frozen") or # new py2exe
hasattr(sys, "importers") # old py2exe
or imp.is_frozen("__main__")) # tools/freeze
if main_is_frozen():
#maindir = get_main_dir()
if sys.platform[:6] == 'darwin':
#need to go up three folders
os.chdir("../../../mom")
maindir = os.getcwd()
else:
os.chdir("../common")
maindir = os.getcwd()
#sys.path.insert(0,maindir)
sys.path.append(maindir)
from mud.worldserver.main import main
#import profile
#profile.runctx("main()",globals(),locals(),"profile.prof")
#import hotshot
#prof = hotshot.Profile("hotshot.prof",0,0)
#prof.runctx("main()",globals(),locals())
#prof.close()
main()