mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-25 15:41:06 +00:00
Be sure the temporary directory exists
This commit is contained in:
parent
5b0d20c453
commit
92691c1b32
@ -6,6 +6,9 @@ import treq
|
|||||||
|
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
|
from twisted.python.filepath import (
|
||||||
|
FilePath,
|
||||||
|
)
|
||||||
from twisted.application import service
|
from twisted.application import service
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
from twisted.internet.defer import inlineCallbacks, returnValue
|
from twisted.internet.defer import inlineCallbacks, returnValue
|
||||||
@ -316,10 +319,12 @@ class WebMixin(TimezoneMixin):
|
|||||||
self.staticdir = self.mktemp()
|
self.staticdir = self.mktemp()
|
||||||
self.clock = Clock()
|
self.clock = Clock()
|
||||||
self.fakeTime = 86460 # 1d 0h 1m 0s
|
self.fakeTime = 86460 # 1d 0h 1m 0s
|
||||||
|
tempdir = FilePath(self.mktemp())
|
||||||
|
tempdir.makedirs()
|
||||||
self.ws = webish.WebishServer(
|
self.ws = webish.WebishServer(
|
||||||
self.s,
|
self.s,
|
||||||
"0",
|
"0",
|
||||||
tempdir=self.mktemp(),
|
tempdir=tempdir.path,
|
||||||
staticdir=self.staticdir,
|
staticdir=self.staticdir,
|
||||||
clock=self.clock,
|
clock=self.clock,
|
||||||
now_fn=lambda:self.fakeTime,
|
now_fn=lambda:self.fakeTime,
|
||||||
|
Loading…
Reference in New Issue
Block a user