]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
client.py: write control.furl in the right place
authorBrian Warner <warner@allmydata.com>
Tue, 17 Jul 2007 01:06:27 +0000 (18:06 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 17 Jul 2007 01:06:27 +0000 (18:06 -0700)
src/allmydata/client.py

index d0099e3e2679b934c467ad7b1ea12d629bad7127..a4cace20bdbc5ba981cbdac0fcb40cf5a300932c 100644 (file)
@@ -118,10 +118,11 @@ class Client(node.Node, Referenceable):
         c = ControlServer()
         c.setServiceParent(self)
         control_url = self.tub.registerReference(c)
-        f = open("control.furl", "w")
+        control_furl_file = os.path.join(self.basedir, "control.furl")
+        f = open(control_furl_file, "w")
         f.write(control_url + "\n")
         f.close()
-        os.chmod("control.furl", 0600)
+        os.chmod(control_furl_file, 0600)
 
 
     def remote_get_versions(self):