Commit 49ce3f56 authored by Claude Paroz's avatar Claude Paroz

Made the lock dir configurable by a setting

parent 41b6c813
Pipeline #115504 passed with stage
in 3 minutes and 32 seconds
......@@ -203,6 +203,8 @@ GETTEXT_ITS_DATA = {
GITLAB_TOKEN = 'fill_with_real_token'
LOCK_DIR = '/var/lock'
try:
from .local_settings import *
except ImportError:
......
......@@ -173,7 +173,7 @@ class ModuleLock:
def __init__(self, mod):
assert isinstance(mod, Module)
self.module = mod
self.dirpath = os.path.join("/var/lock", "updating-%s" % self.module.name)
self.dirpath = os.path.join(settings.LOCK_DIR, "updating-%s" % self.module.name)
def __enter__(self):
while True:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment