1.1 --- a/examples/ModPython/AuthApp/AuthHandler.py Fri Jan 13 17:41:08 2006 +0000
1.2 +++ b/examples/ModPython/AuthApp/AuthHandler.py Fri Jan 13 17:42:13 2006 +0000
1.3 @@ -1,10 +1,9 @@
1.4 #!/usr/bin/env python
1.5
1.6 -# NOTE: Path manipulation requires manual customisation.
1.7 +# NOTE: Path manipulation may require manual customisation.
1.8
1.9 -import sys
1.10 -sys.path.append("/home/paulb/Software/Python/WebStack")
1.11 -sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
1.12 +import sys, os
1.13 +sys.path.append(os.path.abspath(os.path.join(__file__, "../../../Common")))
1.14
1.15 from WebStack.Adapters import ModPython
1.16 from Auth import AuthResource, AuthAuthenticator
2.1 --- a/examples/ModPython/CalendarApp/CalendarHandler.py Fri Jan 13 17:41:08 2006 +0000
2.2 +++ b/examples/ModPython/CalendarApp/CalendarHandler.py Fri Jan 13 17:42:13 2006 +0000
2.3 @@ -1,10 +1,9 @@
2.4 #!/usr/bin/env python
2.5
2.6 -# NOTE: Path manipulation requires manual customisation.
2.7 +# NOTE: Path manipulation may require manual customisation.
2.8
2.9 -import sys
2.10 -sys.path.append("/home/paulb/Software/Python/WebStack")
2.11 -sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
2.12 +import sys, os
2.13 +sys.path.append(os.path.abspath(os.path.join(__file__, "../../../Common")))
2.14
2.15 from WebStack.Adapters import ModPython
2.16 from Calendar import CalendarResource
3.1 --- a/examples/ModPython/CookiesApp/CookiesHandler.py Fri Jan 13 17:41:08 2006 +0000
3.2 +++ b/examples/ModPython/CookiesApp/CookiesHandler.py Fri Jan 13 17:42:13 2006 +0000
3.3 @@ -1,10 +1,9 @@
3.4 #!/usr/bin/env python
3.5
3.6 -# NOTE: Path manipulation requires manual customisation.
3.7 +# NOTE: Path manipulation may require manual customisation.
3.8
3.9 -import sys
3.10 -sys.path.append("/home/paulb/Software/Python/WebStack")
3.11 -sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
3.12 +import sys, os
3.13 +sys.path.append(os.path.abspath(os.path.join(__file__, "../../../Common")))
3.14
3.15 from WebStack.Adapters import ModPython
3.16 from Cookies import CookiesResource
4.1 --- a/examples/ModPython/FormApp/FormHandler.py Fri Jan 13 17:41:08 2006 +0000
4.2 +++ b/examples/ModPython/FormApp/FormHandler.py Fri Jan 13 17:42:13 2006 +0000
4.3 @@ -1,10 +1,9 @@
4.4 #!/usr/bin/env python
4.5
4.6 -# NOTE: Path manipulation requires manual customisation.
4.7 +# NOTE: Path manipulation may require manual customisation.
4.8
4.9 -import sys
4.10 -sys.path.append("/home/paulb/Software/Python/WebStack")
4.11 -sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
4.12 +import sys, os
4.13 +sys.path.append(os.path.abspath(os.path.join(__file__, "../../../Common")))
4.14
4.15 from WebStack.Adapters import ModPython
4.16 from Form import FormResource
5.1 --- a/examples/ModPython/LoginApp/LoginHandler.py Fri Jan 13 17:41:08 2006 +0000
5.2 +++ b/examples/ModPython/LoginApp/LoginHandler.py Fri Jan 13 17:42:13 2006 +0000
5.3 @@ -1,10 +1,9 @@
5.4 #!/usr/bin/env python
5.5
5.6 -# NOTE: Path manipulation requires manual customisation.
5.7 +# NOTE: Path manipulation may require manual customisation.
5.8
5.9 -import sys
5.10 -sys.path.append("/home/paulb/Software/Python/WebStack")
5.11 -sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
5.12 +import sys, os
5.13 +sys.path.append(os.path.abspath(os.path.join(__file__, "../../../Common")))
5.14
5.15 from WebStack.Adapters import ModPython
5.16 from WebStack.Resources.Login import LoginResource, LoginAuthenticator
6.1 --- a/examples/ModPython/SessionsApp/SessionsHandler.py Fri Jan 13 17:41:08 2006 +0000
6.2 +++ b/examples/ModPython/SessionsApp/SessionsHandler.py Fri Jan 13 17:42:13 2006 +0000
6.3 @@ -1,10 +1,9 @@
6.4 #!/usr/bin/env python
6.5
6.6 -# NOTE: Path manipulation requires manual customisation.
6.7 +# NOTE: Path manipulation may require manual customisation.
6.8
6.9 -import sys
6.10 -sys.path.append("/home/paulb/Software/Python/WebStack")
6.11 -sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
6.12 +import sys, os
6.13 +sys.path.append(os.path.abspath(os.path.join(__file__, "../../../Common")))
6.14
6.15 from WebStack.Adapters import ModPython
6.16 from Sessions import SessionsResource
7.1 --- a/examples/ModPython/SimpleApp/SimpleHandler.py Fri Jan 13 17:41:08 2006 +0000
7.2 +++ b/examples/ModPython/SimpleApp/SimpleHandler.py Fri Jan 13 17:42:13 2006 +0000
7.3 @@ -1,10 +1,9 @@
7.4 #!/usr/bin/env python
7.5
7.6 -# NOTE: Path manipulation requires manual customisation.
7.7 +# NOTE: Path manipulation may require manual customisation.
7.8
7.9 -import sys
7.10 -sys.path.append("/home/paulb/Software/Python/WebStack")
7.11 -sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
7.12 +import sys, os
7.13 +sys.path.append(os.path.abspath(os.path.join(__file__, "../../../Common")))
7.14
7.15 from WebStack.Adapters import ModPython
7.16 from Simple import SimpleResource
8.1 --- a/examples/ModPython/SimpleWithLoginApp/SimpleWithLoginHandler.py Fri Jan 13 17:41:08 2006 +0000
8.2 +++ b/examples/ModPython/SimpleWithLoginApp/SimpleWithLoginHandler.py Fri Jan 13 17:42:13 2006 +0000
8.3 @@ -1,10 +1,9 @@
8.4 #!/usr/bin/env python
8.5
8.6 -# NOTE: Path manipulation requires manual customisation.
8.7 +# NOTE: Path manipulation may require manual customisation.
8.8
8.9 -import sys
8.10 -sys.path.append("/home/paulb/Software/Python/WebStack")
8.11 -sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
8.12 +import sys, os
8.13 +sys.path.append(os.path.abspath(os.path.join(__file__, "../../../Common")))
8.14
8.15 from WebStack.Adapters import ModPython
8.16 from WebStack.Resources.LoginRedirect import LoginRedirectResource, LoginRedirectAuthenticator
9.1 --- a/examples/ModPython/VerySimpleApp/VerySimpleHandler.py Fri Jan 13 17:41:08 2006 +0000
9.2 +++ b/examples/ModPython/VerySimpleApp/VerySimpleHandler.py Fri Jan 13 17:42:13 2006 +0000
9.3 @@ -1,10 +1,9 @@
9.4 #!/usr/bin/env python
9.5
9.6 -# NOTE: Path manipulation requires manual customisation.
9.7 +# NOTE: Path manipulation may require manual customisation.
9.8
9.9 -import sys
9.10 -sys.path.append("/home/paulb/Software/Python/WebStack")
9.11 -sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
9.12 +import sys, os
9.13 +sys.path.append(os.path.abspath(os.path.join(__file__, "../../../Common")))
9.14
9.15 from WebStack.Adapters import ModPython
9.16 from VerySimple import VerySimpleResource