1 |
bernhard |
2713 |
# Copyright (C) 2004 by Intevation GmbH vim:encoding=latin-1: |
2 |
nhueffme |
2549 |
# Authors: |
3 |
bernhard |
2713 |
# Nina Hüffmeyer <[email protected]> |
4 |
nhueffme |
2549 |
# |
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 |
bernhard |
2713 |
from Thuban import _, internal_from_unicode |
29 |
nhueffme |
2549 |
from Thuban.UI.extensionregistry import ExtensionDesc, ext_registry |
30 |
|
|
|
31 |
|
|
ext_registry.add(ExtensionDesc( |
32 |
|
|
name = 'OGRstart', |
33 |
|
|
version = '0.9.0', |
34 |
bernhard |
2713 |
authors= [ internal_from_unicode(u'Nina H\xfcffmeyer') ], |
35 |
nhueffme |
2549 |
copyright = '2004 Intevation GmbH', |
36 |
|
|
desc = _("Open a file supported by ogr."))) |