Skip to content

Commit 18699b0

Browse files
committed
Fix breakage of supybot.directories.data.web when it's a relative directory (the default)
1 parent 15009ca commit 18699b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ class DataFilename(registry.String):
954954
def __call__(self):
955955
v = super(DataFilename, self).__call__()
956956
dataDir = supybot.directories.data()
957-
if not v.startswith(dataDir):
957+
if not v.startswith("/") and not v.startswith(dataDir):
958958
v = os.path.basename(v)
959959
v = os.path.join(dataDir, v)
960960
self.setValue(v)
@@ -984,7 +984,7 @@ def __call__(self):
984984
DataFilenameDirectory('tmp', _("""Determines what directory temporary files
985985
are put into.""")))
986986
registerGlobalValue(supybot.directories.data, 'web',
987-
Directory('web', _("""Determines what directory files of the
987+
DataFilenameDirectory('web', _("""Determines what directory files of the
988988
web server (templates, custom images, ...) are put into.""")))
989989

990990
def _update_tmp():

0 commit comments

Comments
 (0)