/[thuban]/branches/WIP-pyshapelib-bramz/Extensions/ogr/__init__.py
ViewVC logotype

Annotation of /branches/WIP-pyshapelib-bramz/Extensions/ogr/__init__.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2683 - (hide annotations)
Wed May 17 19:32:45 2006 UTC (18 years, 9 months ago) by dpinte
Original Path: trunk/thuban/Extensions/ogr/__init__.py
File MIME type: text/x-python
File size: 1072 byte(s)
2006-05-17 Didrik Pinte <dpinte@itae.be>
    * Extensions/ogr/__init__.py : updated test for win32 and correct
    imports
        

1 nhueffme 2549 # Copyright (C) 2004 by Intevation GmbH
2     # Authors:
3     # Nina Hueffmeyer <[email protected]>
4     #
5     # This program is free software under the GPL (>=v2)
6     # Read the file COPYING coming with the software for details.
7    
8     __version__ = "$Revision$"
9     # $Source$
10     # $Id$
11    
12     # import the actual modules
13     from os import environ
14 dpinte 2683 from sys import platform
15    
16 nhueffme 2549 try:
17 dpinte 2683 if platform != 'win32':
18     dummy = environ['DISPLAY']
19     import ogrstart
20     except KeyError:
21     pass # For non-win32 platform, we don't have a DISPLAY, so don't import
22     # the modules (for test mode)
23     # For win32 platform, there is always have a graphical mode
24 nhueffme 2549 # Not sure whether this is the best method to avoid problems
25     # in the global test routine.
26    
27     # perform the registration of the extension
28     from Thuban import _
29     from Thuban.UI.extensionregistry import ExtensionDesc, ext_registry
30    
31     ext_registry.add(ExtensionDesc(
32     name = 'OGRstart',
33     version = '0.9.0',
34 nhueffme 2554 authors= [ 'Nina Hueffmeyer' ],
35 nhueffme 2549 copyright = '2004 Intevation GmbH',
36     desc = _("Open a file supported by ogr.")))

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26