Revision: | 1.1 |
Committed: | Sun Feb 5 00:02:08 2006 UTC (18 years, 5 months ago) by root |
Content type: | text/x-python |
Branch point for: | UPSTREAM, MAIN |
Log Message: | Initial revision |
# | Content |
---|---|
1 | import Crossfire |
2 | import os.path |
3 | import sys |
4 | |
5 | print "Running python initialize script." |
6 | sys.path.insert(0, os.path.join(Crossfire.DataDirectory(), Crossfire.MapDirectory(), 'python')) |
7 | |
8 | path = os.path.join(Crossfire.DataDirectory(), Crossfire.MapDirectory(), 'python/events/init') |
9 | |
10 | if os.path.exists(path): |
11 | scripts = os.listdir(path) |
12 | |
13 | for script in scripts: |
14 | if (script.endswith('.py')): |
15 | execfile(os.path.join(path, script)) |