projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
920fed7
)
client.py: write control.furl in the right place
author
Brian Warner
<warner@allmydata.com>
Tue, 17 Jul 2007 01:06:27 +0000
(18:06 -0700)
committer
Brian Warner
<warner@allmydata.com>
Tue, 17 Jul 2007 01:06:27 +0000
(18:06 -0700)
src/allmydata/client.py
patch
|
blob
|
history
diff --git
a/src/allmydata/client.py
b/src/allmydata/client.py
index d0099e3e2679b934c467ad7b1ea12d629bad7127..a4cace20bdbc5ba981cbdac0fcb40cf5a300932c 100644
(file)
--- a/
src/allmydata/client.py
+++ b/
src/allmydata/client.py
@@
-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):