Ticket #1150: remove-find_exe.darcs.patch

File remove-find_exe.darcs.patch, 5.9 KB (added by davidsarah, at 2010-12-26T03:03:54Z)

Remove src/allmydata/util/find_exe.py which is no longer used. fixes #1150

Line 
11 patch for repository davidsarah@dev.allmydata.org:/home/darcs/tahoe/trunk:
2
3Sun Dec 26 02:32:06 GMT Standard Time 2010  david-sarah@jacaranda.org
4  * Remove src/allmydata/util/find_exe.py which is no longer used. fixes #1150
5
6New patches:
7
8[Remove src/allmydata/util/find_exe.py which is no longer used. fixes #1150
9david-sarah@jacaranda.org**20101226023206
10 Ignore-this: 7436c9b53bf210aed34a1a973cd9cace
11] {
12hunk ./src/allmydata/util/find_exe.py 1
13-import os, sys
14-from twisted.python.procutils import which
15-
16-def find_exe(exename):
17-    """
18-    Look for something named exename or exename + ".py".
19-
20-    This is a kludge.
21-
22-    @return: a list containing one element which is the path to the exename
23-        (if it is thought to be executable), or else the first element being
24-        sys.executable and the second element being the path to the
25-        exename + ".py", or else return False if one can't be found
26-    """
27-    exes = which(exename)
28-    exe = exes and exes[0]
29-    if not exe:
30-        exe = os.path.join(sys.prefix, 'scripts', exename + '.py')
31-    if os.path.exists(exe):
32-        path, ext = os.path.splitext(exe)
33-        if ext.lower() in [".exe", ".bat",]:
34-            cmd = [exe,]
35-        else:
36-            cmd = [sys.executable, exe,]
37-        return cmd
38-    else:
39-        return False
40-
41rmfile ./src/allmydata/util/find_exe.py
42}
43
44Context:
45
46[docs/architecture.rst: correct rst syntax.
47david-sarah@jacaranda.org**20101212202003
48 Ignore-this: 3fbe12feb28bec6f1c63aedbc79aad21
49]
50[docs/architecture.rst: formatting.
51david-sarah@jacaranda.org**20101212201719
52 Ignore-this: 305fa5dfc2939355eaf6d0d2161eb1ff
53]
54[docs: linkification, wording improvements.
55david-sarah@jacaranda.org**20101212201234
56 Ignore-this: 4e67287f527a8bc728cfbd93255d2aae
57]
58[docs: formatting.
59david-sarah@jacaranda.org**20101212201115
60 Ignore-this: 2e0ed394ac7726651d3a4f2c4b0d3798
61]
62[docs/configuration.rst: more formatting tweaks; which -> that.
63david-sarah@jacaranda.org**20101212195522
64 Ignore-this: a7becb7021854ca5a90edd892b36fdd7
65]
66[docs/configuration.rst: more changes to formatting.
67david-sarah@jacaranda.org**20101212194511
68 Ignore-this: 491aac33e5f5268d224359f1447d10be
69]
70[docs/configuration.rst: changes to formatting (mainly putting commands and filenames in monospace).
71david-sarah@jacaranda.org**20101212181828
72 Ignore-this: 8a1480e2d5f43bee678476424615b50f
73]
74[scripts/backupdb.py: more accurate comment about path field.
75david-sarah@jacaranda.org**20101212170320
76 Ignore-this: 50e47a2228a85207bbcd188a78a0d4e6
77]
78[scripts/cli.py: fix missing 'put' in usage example for 'tahoe put'.
79david-sarah@jacaranda.org**20101212170207
80 Ignore-this: 2cbadf066fff611fc03d3c0ff97ce6ec
81]
82[docs/frontends/CLI.rst: changes to formatting (mainly putting commands and filenames in monospace), and to command syntax to reflect that DIRCAP/... is accepted. Clarify the syntax of 'tahoe put' and other minor corrections. Tahoe -> Tahoe-LAFS.
83david-sarah@jacaranda.org**20101212165800
84 Ignore-this: a123ef6b564aa8624d1e79c97068ea12
85]
86[docs/frontends/CLI.rst: Unicode arguments to 'tahoe' work on Windows as of v1.7.1.
87david-sarah@jacaranda.org**20101212063740
88 Ignore-this: 3977a99dfa86ac33a44171deaf43aaab
89]
90[docs/known_issues.rst: fix title and linkify another URL. refs #1225
91david-sarah@jacaranda.org**20101212062817
92 Ignore-this: cc91287f7fb51c23440b3d2fe79c449c
93]
94[docs/known_issues.rst: fix an external link. refs #1225
95david-sarah@jacaranda.org**20101212062435
96 Ignore-this: b8cbf12f353131756c358965c48060ec
97]
98[Fix a link from uri.rst to dirnodes.rst. refs #1225
99david-sarah@jacaranda.org**20101212054502
100 Ignore-this: af6205299f5c9a33229cab259c00f9d5
101]
102[Fix a link from webapi.rst to FTP-and-SFTP.rst. refs #1225
103david-sarah@jacaranda.org**20101212053435
104 Ignore-this: 2b9f88678c3447ea860d6b61e8799858
105]
106[More specific hyperlink to architecture.rst from helper.rst. refs #1225
107david-sarah@jacaranda.org**20101212052607
108 Ignore-this: 50424c768fca481252fabf58424852dc
109]
110[Update hyperlinks between docs, and linkify some external references. refs #1225
111david-sarah@jacaranda.org**20101212051459
112 Ignore-this: cd43a4c3d3de1f832abfa88d5fc4ace1
113]
114[docs/specifications/dirnodes.rst: fix references to mutable.rst. refs #1225
115david-sarah@jacaranda.org**20101212012720
116 Ignore-this: 6819b4b4e06e947ee48b365e840db37d
117]
118[docs/specifications/mutable.rst: correct the magic string for v1 mutable containers. refs #1225
119david-sarah@jacaranda.org**20101212011400
120 Ignore-this: 99a5fcdd40cef83dbb08f323f6cdaaca
121]
122[Move .txt files in docs/frontends and docs/specifications to .rst. refs #1225
123david-sarah@jacaranda.org**20101212010251
124 Ignore-this: 8796d35d928370f7dc6ad2dafdc1c0fe
125]
126[Convert docs/frontends and docs/specifications to reStructuredText format (not including file moves).
127david-sarah@jacaranda.org**20101212004632
128 Ignore-this: e3ceb2d832d73875abe48624ddbb5622
129]
130[scripts/cli.py: remove the disclaimer in the help for 'tahoe cp' that it does not handle non-ASCII filenames well. (At least, we intend to handle them.)
131david-sarah@jacaranda.org**20101130002145
132 Ignore-this: 94c003efaa20b9eb4a83503d79844ca
133]
134[relnotes.txt: fifth -> sixth labor-of-love release
135zooko@zooko.com**20101129045647
136 Ignore-this: 21c245015268b38916e3a138d256c09d
137]
138[Makefile: BB_BRANCH is set to the empty string for trunk, not the string 'trunk'.
139david-sarah@jacaranda.org**20101128233512
140 Ignore-this: 5a7ef8eb10475636d21b91e25b56c369
141]
142[relnotes.txt: eleventh -> twelfth release.
143david-sarah@jacaranda.org**20101128223321
144 Ignore-this: 1e26410156a665271c1170803dea2c0d
145]
146[relnotes.tst: point to known_issues.rst, not known_issues.txt.
147david-sarah@jacaranda.org**20101128222918
148 Ignore-this: 60194eb4544cac446fe4f60b3e34b887
149]
150[quickstart.html: fix link to point to allmydata-tahoe-1.8.1.zip.
151david-sarah@jacaranda.org**20101128221728
152 Ignore-this: 7b3ee86f8256aa12f5d862f689f3ee29
153]
154[TAG allmydata-tahoe-1.8.1
155david-sarah@jacaranda.org**20101128212336
156 Ignore-this: 9c18bdeaef4822f590d2a0d879e00621
157]
158Patch bundle hash:
15929ad6889b2032e623dca8b2eb6c143833b10b439