aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-06-03 16:57:15 +0200
committerGuilhem Moulin <guilhem@fripost.org>2024-06-03 17:07:51 +0200
commitcdbb0c96f4778d3c3884e1cff340130a93f3bbb2 (patch)
tree20ffd0c4e656896b1a92d18fe202ac728efac3c2
parent60fd075506093d94107515788511f4a56f876817 (diff)
Add GPL-3+ license headers.
-rw-r--r--common.py18
-rwxr-xr-xwebmap-download18
2 files changed, 36 insertions, 0 deletions
diff --git a/common.py b/common.py
index 0036df4..b8913de 100644
--- a/common.py
+++ b/common.py
@@ -1,3 +1,21 @@
+#----------------------------------------------------------------------
+# Backend utilities for the Klimatanalys Norr project (common module)
+# Copyright © 2024 Guilhem Moulin <info@guilhem.se>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+#----------------------------------------------------------------------
+
import os, sys
from os import path
from fnmatch import fnmatchcase
diff --git a/webmap-download b/webmap-download
index fb52d7d..7720e79 100755
--- a/webmap-download
+++ b/webmap-download
@@ -1,5 +1,23 @@
#!/usr/bin/python3
+#----------------------------------------------------------------------
+# Backend utilities for the Klimatanalys Norr project (download common layers)
+# Copyright © 2024 Guilhem Moulin <info@guilhem.se>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+#----------------------------------------------------------------------
+
from os import O_RDONLY, O_WRONLY, O_CREAT, O_TRUNC, O_CLOEXEC, O_PATH, O_DIRECTORY, O_TMPFILE
import os, sys
from fcntl import flock, LOCK_EX