Permalink
Browse files

git-svn-id: http://evserver.googlecode.com/svn/trunk@69 e9bb6d7e-af12…

…-11dd-bad7-87afd3b02348
  • Loading branch information...
1 parent 8f16c0e commit 7733ba4fc4c104148b013b403280464b895a7f58 majek04 committed Jan 22, 2009
Showing with 6 additions and 0 deletions.
  1. +6 −0 evserver/main.py
View
@@ -224,12 +224,18 @@ def main(args):
log.info("Process pid=%i" % (os.getpid() ))
log.info("Running with verbosity %i (>=%s)" % (verbosity, logging.getLevelName(verbosity)))
log.info("Framework=%r, Main dir=%r, args=%r" % (options.framework, os.getcwd(), args))
+
+ oldcwd = os.getcwd()
+ os.chdir( resource_filename(__name__, '') )
+
libeventbinary, libeventversion = find_libevent_binary(options.libeventbinary)
ctypes.libeventbinary = libeventbinary
ctypes.libeventbinary_version = libeventversion
import server
log.info("libevent loaded from %r, ver %r" % (libeventbinary, libeventversion,))
+ os.chdir(oldcwd)
+
server.main_init()
if not options.nodebug:

0 comments on commit 7733ba4

Please sign in to comment.