-#! /usr/bin/python
+#!/usr/bin/env python
"""
This tool estimates how much space would be consumed by a filetree into which
-#! /usr/bin/python
+#!/usr/bin/env python
from foolscap import Tub, eventual
from twisted.internet import reactor
-#! /usr/bin/python
+#!/usr/bin/env python
# feed this the results of 'tahoe catalog-shares' for all servers
-#! /usr/bin/python
+#!/usr/bin/env python
import os
-#! /usr/bin/python
+#!/usr/bin/env python
"""Determine the version number of the current tree.
-#! /usr/bin/python
+#!/usr/bin/env python
import os.path, time, pickle
import foolscap
-#! /usr/bin/python
+#!/usr/bin/env python
"""
Given a list of nodeids and a 'convergence' file, create a bunch of files
-#!/usr/bin/python
+#!/usr/bin/env python
"""Create a short probably-unique string for use as a umid= argument in a
Foolscap log() call, to make it easier to locate the source code that
-#! /usr/bin/python
+#!/usr/bin/env python
import os, sys, re
import urllib
-#! /usr/bin/python
+#!/usr/bin/env python
# This is a munin plugin which pulls data from the server in
# misc/spacetime/diskwatcher.tac . It produces a graph of how much free space
-#! /usr/bin/python
+#!/usr/bin/env python
# This is a munin plugin which pulls data from the server in
# misc/spacetime/diskwatcher.tac . It produces a graph of how much disk space
-#! /usr/bin/python
+#!/usr/bin/env python
# This is a munin plugin which pulls data from the server in
# misc/spacetime/diskwatcher.tac . It produces a graph of how much time is
-#! /usr/bin/python
+#!/usr/bin/env python
import sys, os.path
-#! /usr/bin/python
+#!/usr/bin/env python
# This is a munin plugin to track the number of files that each node's
# StorageServer is holding on behalf of other nodes. Each file that has been
-#! /usr/bin/python
+#!/usr/bin/env python
import os, sys
import urllib
-#! /usr/bin/python
+#!/usr/bin/env python
import os, sys
import urllib
-#! /usr/bin/python
+#!/usr/bin/env python
import os, sys
import urllib
-#! /usr/bin/python
+#!/usr/bin/env python
# This munin plugin isolates processes by looking for the 'pid' file created
# by 'allmydata start', then extracts the amount of memory they consume (both
-#! /usr/bin/python
+#!/usr/bin/env python
# This is a munin plugin which pulls total-used data from the server in
# misc/spacetime/diskwatcher.tac, and a total-deep-size number from custom
-#! /usr/bin/python
+#!/usr/bin/env python
import os, sys
import urllib
-#!/usr/bin/python
+#!/usr/bin/env python
# retrieve a latency statistic for a given operation and percentile from a
# set of storage servers.
-#!/usr/bin/python
+#!/usr/bin/env python
# graph operations-per-second from a set of storage servers.
-#! /usr/bin/python
+#!/usr/bin/env python
# copy .rrd files from a remote munin master host, sum the 'df' stats from a
# list of hosts, use them to estimate a rate-of-change for the past month,
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import pickle
-#! /usr/bin/python
+#!/usr/bin/env python
# This is a munin plugin to track the amount of disk space each node's
# StorageServer is consuming on behalf of other nodes. This is where the
-#! /usr/bin/python
+#!/usr/bin/env python
import sys
print "python%d.%d" % (sys.version_info[:2])
-#! /usr/bin/python
+#!/usr/bin/env python
import sys, math
from allmydata import upload, uri, encode, storage
-#! /usr/bin/python
+#!/usr/bin/env python
from allmydata import __version__ as v
-#! /usr/bin/python
+#!/usr/bin/env python
import sys
from subprocess import Popen, PIPE
-#! /usr/bin/python
+#!/usr/bin/env python
"""This program is a client that sends files to xfer-server.py. You give it
the server's FURL, and it can put files into the server's targetdir (and
-#! /usr/bin/python
+#!/usr/bin/env python
"""
Test an existing Tahoe grid, both to see if the grid is still running and to
-#! /usr/bin/python
+#!/usr/bin/env python
"""
this is a load-generating client program. It does all of its work through a