fixing relative path issues with archives/ (bis)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# mailinglists specific
|
||||
archives/
|
||||
config.py
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
||||
+2
-1
@@ -5,7 +5,8 @@ class Archive():
|
||||
|
||||
def __init__(self, archives_dir=None):
|
||||
if archives_dir==None:
|
||||
self.archives_dir = "archives/"
|
||||
from www import config
|
||||
self.archives_dir = config.ARCHIVES_PATH
|
||||
else:
|
||||
self.archives_dir = archives_dir
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ from flask import Flask
|
||||
app = Flask(__name__)
|
||||
|
||||
from www import routes
|
||||
from www import config
|
||||
|
||||
# import logging
|
||||
# logging.basicConfig(level=logging.DEBUG)
|
||||
|
||||
+2
-1
@@ -11,7 +11,8 @@ class Archives(metaclass=Singleton):
|
||||
|
||||
def __init__(self, archives_dir=None):
|
||||
if archives_dir==None:
|
||||
self.archives_dir = "archives/"
|
||||
from www import config
|
||||
self.archives_dir = config.ARCHIVES_PATH
|
||||
else:
|
||||
self.archives_dir = archives_dir
|
||||
|
||||
|
||||
Reference in New Issue
Block a user