[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Sep 12 14:18:07 PDT 2014


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/c49a4af8c688/
Changeset:   c49a4af8c688
Branch:      yt
User:        ngoldbaum
Date:        2014-09-12 22:19:42
Summary:     Executing the plugins file with yt modules imported. Fixes #897
Affected #:  1 file

diff -r acb91ec703a3768e16adeb864b3977cee6bc6779 -r c49a4af8c68877570871f1639fd89cd0de01034a yt/funcs.py
--- a/yt/funcs.py
+++ b/yt/funcs.py
@@ -747,6 +747,7 @@
     return _func
     
 def enable_plugins():
+    import yt
     from yt.config import ytcfg
     my_plugin_name = ytcfg.get("yt","pluginfilename")
     # We assume that it is with respect to the $HOME/.yt directory
@@ -756,4 +757,4 @@
         _fn = os.path.expanduser("~/.yt/%s" % my_plugin_name)
     if os.path.isfile(_fn):
         mylog.info("Loading plugins from %s", _fn)
-        execfile(_fn)
+        execfile(_fn, yt.__dict__)


https://bitbucket.org/yt_analysis/yt/commits/8d0b30b6b148/
Changeset:   8d0b30b6b148
Branch:      yt
User:        ngoldbaum
Date:        2014-09-12 22:20:01
Summary:     Import the yt module in the iyt script.
Affected #:  1 file

diff -r c49a4af8c68877570871f1639fd89cd0de01034a -r 8d0b30b6b14878579ff380017ac46d826eb0c788 scripts/iyt
--- a/scripts/iyt
+++ b/scripts/iyt
@@ -90,6 +90,7 @@
     kwargs = dict()
 
 ip.ex("from yt.mods import *")
+ip.ex("import yt")
 
 # Now we add some tab completers, in the vein of:
 # http://pymel.googlecode.com/svn/trunk/tools/ipymel.py

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