File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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.""" )))
986986registerGlobalValue (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
990990def _update_tmp ():
You can’t perform that action at this time.
0 commit comments