5 Crossfire.Log(Crossfire.LogDebug,
"Running python initialize script.")
6 sys.path.insert(0, os.path.join(Crossfire.DataDirectory(), Crossfire.MapDirectory(),
'python'))
8 path = os.path.join(Crossfire.DataDirectory(), Crossfire.MapDirectory(),
'python/events/init')
10 if os.path.exists(path):
11 scripts = os.listdir(path)
13 for script
in scripts:
14 if (script.endswith(
'.py')):
15 exec(
open(os.path.join(path, script)).read())