Skip to content

Commit

Permalink
Merge admin-scripts-path-6208
Browse files Browse the repository at this point in the history
Author: therve
Reviewer: tom.prince
Fixes: twisted#6208

Make sure admin scripts use the current checkout when running.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@37076 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
  • Loading branch information
therve committed Feb 9, 2013
1 parent 5e7514f commit 69d8955
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
9 changes: 8 additions & 1 deletion bin/admin/build-apidocs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
# This script is not meant to be distributed to users of Twisted.
# It is only for use in making upstream Twisted releases.

import sys
import sys, os
extra = os.path.dirname(os.path.dirname(sys.argv[0]))
sys.path.insert(0, extra)
try:
import _preamble
except ImportError:
sys.exc_clear()
sys.path.remove(extra)

from twisted.python._release import BuildAPIDocsScript

Expand Down
9 changes: 8 additions & 1 deletion bin/admin/build-news
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
# This script is not meant to be distributed to users of Twisted.
# It is only for use in making upstream Twisted releases.

import sys
import sys, os
extra = os.path.dirname(os.path.dirname(sys.argv[0]))
sys.path.insert(0, extra)
try:
import _preamble
except ImportError:
sys.exc_clear()
sys.path.remove(extra)

from twisted.python._release import NewsBuilder

Expand Down
9 changes: 8 additions & 1 deletion bin/admin/build-tarballs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
# This script is not meant to be distributed to users of Twisted.
# It is only for use in making upstream Twisted releases.

import sys
import sys, os
extra = os.path.dirname(os.path.dirname(sys.argv[0]))
sys.path.insert(0, extra)
try:
import _preamble
except ImportError:
sys.exc_clear()
sys.path.remove(extra)

from twisted.python._release import BuildTarballsScript

Expand Down
9 changes: 8 additions & 1 deletion bin/admin/change-versions
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
# This script is not meant to be distributed to users of Twisted.
# It is only for use in making upstream Twisted releases.

import sys
import sys, os
extra = os.path.dirname(os.path.dirname(sys.argv[0]))
sys.path.insert(0, extra)
try:
import _preamble
except ImportError:
sys.exc_clear()
sys.path.remove(extra)

from twisted.python._release import ChangeVersionsScript

Expand Down
Empty file added twisted/topfiles/6208.misc
Empty file.

0 comments on commit 69d8955

Please sign in to comment.