Files
gentoo/dev-python/twisted/files/trial
Michał Górny a6e7afbaec dev-python/twisted: Remove +x from files/trial
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2019-09-18 18:23:23 +02:00

23 lines
485 B
Python

#!/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()