1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
Set the path for configuration files to /etc
Index: python-mpop/mpop/__init__.py
===================================================================
--- python-mpop.orig/mpop/__init__.py
+++ python-mpop/mpop/__init__.py
@@ -4,11 +4,11 @@
# SMHI,
# Folkborgsvägen 1,
-# Norrköping,
+# Norrköping,
# Sweden
# Author(s):
-
+
# Martin Raspaud <martin.raspaud@smhi.se>
# Adam Dybbroe <adam.dybbroe@smhi.se>
@@ -32,8 +32,10 @@
import os
-BASE_PATH = os.path.sep.join(os.path.dirname(
- os.path.realpath(__file__)).split(os.path.sep)[:-1])
+#BASE_PATH = os.path.sep.join(os.path.dirname(
+# os.path.realpath(__file__)).split(os.path.sep)[:-1])
+
+BASE_PATH = '/'
CONFIG_PATH = (os.environ.get('PPP_CONFIG_DIR', '') or
os.path.join(BASE_PATH, 'etc'))
Index: python-mpop/setup.py
===================================================================
--- python-mpop.orig/setup.py
+++ python-mpop/setup.py
@@ -4,11 +4,11 @@
# SMHI,
# Folkborgsvägen 1,
-# Norrköping,
+# Norrköping,
# Sweden
# Author(s):
-
+
# Martin Raspaud <martin.raspaud@smhi.se>
# Adam Dybbroe <adam.dybbroe@smhi.se>
@@ -55,8 +55,8 @@ setup(name=NAME,
url="https://github.com/mraspaud/mpop",
packages=['mpop', 'mpop.satellites', 'mpop.instruments', 'mpop.satin',
'mpop.satout', 'mpop.saturn', 'mpop.imageo'],
- data_files=[('etc',[os.path.join('etc', 'geo_image.cfg')],
- 'etc',[os.path.join('etc', 'eps_avhrrl1b_6.5.xml')]),
+ data_files=[('/etc',[os.path.join('etc', 'geo_image.cfg')],
+ '/etc',[os.path.join('etc', 'eps_avhrrl1b_6.5.xml')]),
(os.path.join('share', 'doc', NAME),
[os.path.join('doc', 'Makefile'),
os.path.join('doc', 'source', 'conf.py'),
|