1 |
commit: 3dde9c60f14515974f5a2cf503416173f5ea7cdf |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 5 00:16:04 2016 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 5 00:16:04 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dde9c60 |
7 |
|
8 |
dev-python/twisted: Add missed files/trial script for 16.4.1 bug 598372 |
9 |
|
10 |
Package-Manager: portage-2.3.2_p3 |
11 |
|
12 |
dev-python/twisted/files/trial | 22 ++++++++++++++++++++++ |
13 |
1 file changed, 22 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/twisted/files/trial b/dev-python/twisted/files/trial |
16 |
new file mode 100755 |
17 |
index 00000000..8da5886 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/twisted/files/trial |
20 |
@@ -0,0 +1,22 @@ |
21 |
+#!/usr/bin/env python |
22 |
+# Copyright (c) Twisted Matrix Laboratories. |
23 |
+# See LICENSE for details. |
24 |
+import os, sys |
25 |
+ |
26 |
+try: |
27 |
+ import _preamble |
28 |
+except ImportError: |
29 |
+ try: |
30 |
+ sys.exc_clear() |
31 |
+ except AttributeError: |
32 |
+ # exc_clear() (and the requirement for it) has been removed from Py3 |
33 |
+ pass |
34 |
+ |
35 |
+# begin chdir armor |
36 |
+sys.path[:] = map(os.path.abspath, sys.path) |
37 |
+# end chdir armor |
38 |
+ |
39 |
+sys.path.insert(0, os.path.abspath(os.getcwd())) |
40 |
+ |
41 |
+from twisted.scripts.trial import run |
42 |
+run() |