mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-29 22:28:08 -07:00
dev-python/twisted: Add missed files/trial script for 16.4.1 bug 598372
Package-Manager: portage-2.3.2_p3
This commit is contained in:
22
dev-python/twisted/files/trial
Executable file
22
dev-python/twisted/files/trial
Executable file
@@ -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()
|
||||
Reference in New Issue
Block a user