/[thuban]/branches/WIP-pyshapelib-bramz/Extensions/wms/test/adjustpath.py
ViewVC logotype

Annotation of /branches/WIP-pyshapelib-bramz/Extensions/wms/test/adjustpath.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2117 - (hide annotations)
Fri Mar 19 17:00:17 2004 UTC (20 years, 11 months ago) by joey
Original Path: trunk/thuban/Extensions/wms/test/adjustpath.py
File MIME type: text/x-python
File size: 1275 byte(s)
Moved path detection and adding into a module of its own.

1 joey 2117 # Copyright (c) 2004 by Intevation GmbH
2     # Authors:
3     # Martin Schulze <[email protected]>
4     #
5     # This program is free software; you can redistribute it and/or modify
6     # it under the terms of the GNU General Public License as published by
7     # the Free Software Foundation; either version 2 of the License, or
8     # (at your option) any later version.
9     #
10     # This program is distributed in the hope that it will be useful,
11     # but WITHOUT ANY WARRANTY; without even the implied warranty of
12     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13     # GNU General Public License for more details.
14     #
15     # You should have received a copy of the GNU General Public License
16     # along with this program; if not, write to the Free Software
17     # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18    
19     """
20     Add the main Thuban directory to the path, so that Thuban modules can
21     be added without problems.
22    
23     Exported variables:
24    
25     thubandir -- absolute path to the main Thuban directory
26    
27     """
28    
29     __version__ = "$Revision$"
30     # $Source$
31     # $Id$
32    
33     import os
34     from sys import path
35    
36     if os.path.dirname(__file__) == "" or os.path.dirname(__file__) == ".":
37     thubandir = os.path.abspath("../../..")
38     else:
39     thubandir = os.path.abspath(os.path.dirname(__file__) + "/../../..")
40     path.insert(0, thubandir)

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26