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:
fe899da
)
startstop_node.py: find twistd.py in sys.prefix/scripts if there isn't a twistd execu...
author
Zooko O'Whielacronx
<zooko@zooko.com>
Fri, 21 Sep 2007 21:45:20 +0000
(14:45 -0700)
committer
Zooko O'Whielacronx
<zooko@zooko.com>
Fri, 21 Sep 2007 21:45:20 +0000
(14:45 -0700)
src/allmydata/scripts/startstop_node.py
patch
|
blob
|
history
diff --git
a/src/allmydata/scripts/startstop_node.py
b/src/allmydata/scripts/startstop_node.py
index 0b7306f2804830228bd06819133ac3f80275f102..96df1f71a3080d378f24b228eb66718fbbc15eb2 100644
(file)
--- a/
src/allmydata/scripts/startstop_node.py
+++ b/
src/allmydata/scripts/startstop_node.py
@@
-39,10
+39,12
@@
def do_start(basedir, config, out=sys.stdout, err=sys.stderr):
print >>err, " in fact, it doesn't look like a directory at all!"
return 1
twistds = which("twistd")
- if not twistds:
+ twistd = twistds and twistds[0]
+ if not twistd:
+ twistd = os.path.join(sys.prefix, 'Scripts', 'twistd.py')
+ if not os.path.exists(twistd):
print "Can't find twistd (it comes with Twisted). Aborting."
sys.exit(1)
- twistd = twistds[0]
path, ext = os.path.splitext(twistd)
if ext.lower() in [".exe", ".bat",]:
cmd = [twistd,]