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 |
|
|
try: |
15 |
|
|
dummy = environ["DISPLAY"] |
16 |
|
|
import OGR |
17 |
|
|
import maplegend |
18 |
|
|
except: |
19 |
|
|
pass # we don't have a DISPLAY, so don't import the modules |
20 |
|
|
# (we probably are in test-mode) |
21 |
|
|
# Not sure whether this is the best method to avoid problems |
22 |
|
|
# in the global test routine. |
23 |
|
|
|
24 |
|
|
# perform the registration of the extension |
25 |
|
|
from Thuban import _ |
26 |
|
|
from Thuban.UI.extensionregistry import ExtensionDesc, ext_registry |
27 |
|
|
|
28 |
|
|
ext_registry.add(ExtensionDesc( |
29 |
|
|
name = 'OGRstart', |
30 |
|
|
version = '0.9.0', |
31 |
|
|
authors= [ 'Nina Hüffmeyer' ], |
32 |
|
|
copyright = '2004 Intevation GmbH', |
33 |
|
|
desc = _("Open a file supported by ogr."))) |