]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
client.py: only import webish.py if 'webport' is set, to save 3MB of footprint
authorBrian Warner <warner@allmydata.com>
Tue, 4 Sep 2007 23:33:06 +0000 (16:33 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 4 Sep 2007 23:33:06 +0000 (16:33 -0700)
src/allmydata/client.py

index 746357aebb026a27e03bd64c47fa701e5a3c826c..98219e49ff8adcb5418d78227688ac34746ecb91 100644 (file)
@@ -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: