Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy Twisted 16.3's bin/trial and run with it
- Loading branch information
Showing
2 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/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())) | ||
print(sys.path) | ||
|
||
from twisted.scripts.trial import run | ||
run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters