summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2016-11-04 17:16:04 -0700
committerBrian Dolbec <dolsen@gentoo.org>2016-11-04 17:16:04 -0700
commit3dde9c60f14515974f5a2cf503416173f5ea7cdf (patch)
tree86521e2477325d84e0f45c9eb48e5f378f4f9fcd /dev-python/twisted
parentapp-admin/ansible: bup (diff)
downloadgentoo-3dde9c60f14515974f5a2cf503416173f5ea7cdf.tar.gz
gentoo-3dde9c60f14515974f5a2cf503416173f5ea7cdf.tar.bz2
gentoo-3dde9c60f14515974f5a2cf503416173f5ea7cdf.zip
dev-python/twisted: Add missed files/trial script for 16.4.1 bug 598372
Package-Manager: portage-2.3.2_p3
Diffstat (limited to 'dev-python/twisted')
-rwxr-xr-xdev-python/twisted/files/trial22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-python/twisted/files/trial b/dev-python/twisted/files/trial
new file mode 100755
index 000000000000..8da58861abf6
--- /dev/null
+++ b/dev-python/twisted/files/trial
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+# Copyright (c) Twisted Matrix Laboratories.
+# See LICENSE for details.
+import os, sys
+
+try:
+ import _preamble
+except ImportError:
+ try:
+ sys.exc_clear()
+ except AttributeError:
+ # exc_clear() (and the requirement for it) has been removed from Py3
+ pass
+
+# begin chdir armor
+sys.path[:] = map(os.path.abspath, sys.path)
+# end chdir armor
+
+sys.path.insert(0, os.path.abspath(os.getcwd()))
+
+from twisted.scripts.trial import run
+run()