From 77394da4478170d9e0fac3db9e452cf08ff9d89b Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 4 Sep 2007 16:33:06 -0700 Subject: [PATCH] client.py: only import webish.py if 'webport' is set, to save 3MB of footprint --- src/allmydata/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/client.py b/src/allmydata/client.py index 746357ae..98219e49 100644 --- a/src/allmydata/client.py +++ b/src/allmydata/client.py @@ -14,7 +14,6 @@ from allmydata.Crypto.Util.number import bytes_to_long from allmydata.storage import StorageServer from allmydata.upload import Uploader from allmydata.download import Downloader -from allmydata.webish import WebishServer from allmydata.control import ControlServer from allmydata.introducer import IntroducerClient from allmydata.vdrive import VirtualDrive @@ -90,6 +89,7 @@ class Client(node.Node, Referenceable): self.push_to_ourselves = True def init_web(self, webport): + from allmydata.webish import WebishServer # this must be called after the VirtualDrive is attached ws = WebishServer(webport) if self.get_config("webport_allow_localfile") is not None: -- 2.45.2