[gimp-web] pelicanconf.*: expand import path as suggested by pelican developers
- From: Michael Schumacher <schumaml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web] pelicanconf.*: expand import path as suggested by pelican developers
- Date: Tue, 21 Apr 2020 17:21:25 +0000 (UTC)
commit 0a24c8f483bf12b8dba531f1368a6191183508d6
Author: Michael Schumacher <schumaml gmx de>
Date: Tue Apr 21 19:18:06 2020 +0200
pelicanconf.*: expand import path as suggested by pelican developers
pelicanconf.local.py | 5 ++++-
pelicanconf.py | 5 ++++-
pelicanconf.static.py | 19 +++++++++++++++++++
pelicanconf.testing.py | 5 ++++-
4 files changed, 31 insertions(+), 3 deletions(-)
---
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index 490b9b57..8ca18c5d 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -1,8 +1,11 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
+# make sure the current path is searched for imports
import sys
-sys.path.append('.')
+import os
+
+sys.path.append(os.path.abspath(os.path.dirname(__file__)))
# Import everything to the global scope.
from pelicanconf_common import *
diff --git a/pelicanconf.py b/pelicanconf.py
index 721dcf01..07f425f5 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -1,8 +1,11 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
+# make sure the current path is searched for imports
import sys
-sys.path.append('.')
+import os
+
+sys.path.append(os.path.abspath(os.path.dirname(__file__)))
# Import everything to the global scope.
from pelicanconf_common import *
diff --git a/pelicanconf.static.py b/pelicanconf.static.py
new file mode 100644
index 00000000..b250a8b6
--- /dev/null
+++ b/pelicanconf.static.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*- #
+
+# make sure the current path is searched for imports
+import sys
+import os
+
+sys.path.append(os.path.abspath(os.path.dirname(__file__)))
+
+# Import everything to the global scope.
+from pelicanconf_common import *
+#customize_environment('static')
+
+SITEURL = 'https://static.gimp.org'
+SITEMAP_SITEURL = 'https://static.gimp.org'
+
+FEED_DOMAIN = SITEURL
+FEED_ATOM = 'feeds/atom.xml'
+FEED_RSS = 'feeds/rss.xml'
diff --git a/pelicanconf.testing.py b/pelicanconf.testing.py
index d84871df..cc2fd900 100644
--- a/pelicanconf.testing.py
+++ b/pelicanconf.testing.py
@@ -1,8 +1,11 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
+# make sure the current path is searched for imports
import sys
-sys.path.append('.')
+import os
+
+sys.path.append(os.path.abspath(os.path.dirname(__file__)))
# Import everything to the global scope.
from pelicanconf_common import *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]