1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tools/prepare_demo.py Sat Mar 04 18:54:09 2006 +0000
1.3 @@ -0,0 +1,24 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +"Prepare the demonstration program's resources."
1.7 +
1.8 +import os, sys
1.9 +
1.10 +# Find out where the XSLTools distribution directory is.
1.11 +
1.12 +program = sys.argv[0]
1.13 +cwd = os.path.split(program)[0]
1.14 +parts = os.path.split(cwd)
1.15 +if parts[-1] == "tools":
1.16 + parts = parts[:-1]
1.17 +base = os.path.join(*parts)
1.18 +
1.19 +# Set up the environment and obtain the demo resource.
1.20 +
1.21 +sys.path.append(base)
1.22 +sys.path.append(os.path.join(base, "examples", "Common"))
1.23 +
1.24 +import DemoApp
1.25 +DemoApp.prepare_resources()
1.26 +
1.27 +# vim: tabstop=4 expandtab shiftwidth=4