From 7836fd619b496c87a2cff0da6c31bfddcdf706b4 Mon Sep 17 00:00:00 2001 From: akirschbaum Date: Thu, 21 Oct 2004 18:57:42 +0000 Subject: [PATCH] Add script for bootstrapping code. The script runs right after the python plugin is loaded. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2971 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/events/python_init.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 python/events/python_init.py diff --git a/python/events/python_init.py b/python/events/python_init.py new file mode 100644 index 000000000..28e0a2a4f --- /dev/null +++ b/python/events/python_init.py @@ -0,0 +1,5 @@ +import CFPython; +import os.path +import sys + +sys.path.insert(0, os.path.join(CFPython.GetDataDirectory(), CFPython.GetMapDirectory(), 'python'))