[yt-svn] commit/yt: MatthewTurk: Fixing ui instance in get_yt_supp
Bitbucket
commits-noreply at bitbucket.org
Fri Dec 2 09:52:46 PST 2011
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/01838e47eca2/
changeset: 01838e47eca2
branch: yt
user: MatthewTurk
date: 2011-12-02 18:52:38
summary: Fixing ui instance in get_yt_supp
affected #: 1 file
diff -r 3472e4e892d030a26a8a8acfd0ba85740eedf0dd -r 01838e47eca2e941b3ab2eece57babea2e3e1715 yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -325,7 +325,7 @@
req.add_header('Authorization', 'Basic %s' % base64.b64encode(upw).strip())
return urllib2.urlopen(req).read()
-def _get_yt_supp():
+def _get_yt_supp(uu):
supp_path = os.path.join(os.environ["YT_DEST"], "src",
"yt-supplemental")
# Now we check that the supplemental repository is checked out.
@@ -905,7 +905,7 @@
print "*** to point to the installation location! ***"
print
sys.exit(1)
- supp_path = _get_yt_supp()
+ supp_path = _get_yt_supp(uu)
print
print "I have found the yt-supplemental repository at %s" % (supp_path)
print
@@ -1321,7 +1321,8 @@
import imp
from mercurial import hg, ui, commands, error, config
uri = "http://hub.yt-project.org/3rdparty/API/api.php"
- supp_path = _get_yt_supp()
+ uu = ui.ui()
+ supp_path = _get_yt_supp(uu)
try:
result = imp.find_module("cedit", [supp_path])
except ImportError:
@@ -1338,7 +1339,6 @@
print "Sorry, but I'm going to bail."
sys.exit(1)
hgbb = imp.load_module("hgbb", *result)
- uu = ui.ui()
try:
repo = hg.repository(uu, opts.repo)
conf = config.config()
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list