diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/twisted/files/trial | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/twisted/files/trial')
-rwxr-xr-x | dev-python/twisted/files/trial | 22 |
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() |