[Yt-svn] yt: fixed _fix_pf.

hg at spacepope.org hg at spacepope.org
Tue Sep 7 12:26:34 PDT 2010


hg Repository: yt
details:   yt/rev/fdd87d237da1
changeset: 3386:fdd87d237da1
user:      J.S. Oishi <jsoishi at gmail.com>
date:
Tue Sep 07 12:26:25 2010 -0700
description:
fixed _fix_pf.

diffstat:

 yt/utilities/command_line.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r a4cbcfde0eba -r fdd87d237da1 yt/utilities/command_line.py
--- a/yt/utilities/command_line.py	Tue Sep 07 08:15:59 2010 -0700
+++ b/yt/utilities/command_line.py	Tue Sep 07 12:26:25 2010 -0700
@@ -29,6 +29,7 @@
 import optparse, os, os.path, math, sys, time, subprocess
 
 def _fix_pf(arg):
+    print "_fix_pf arg = ", arg
     if os.path.isdir("%s" % arg) and \
         os.path.exists("%s/%s" % (arg,arg)):
         pf = load("%s/%s" % (arg,arg))
@@ -41,7 +42,7 @@
         pf = load(arg)
     if pf is None:
         raise IOError
-
+    return pf
 
 _common_options = dict(
     axis    = dict(short="-a", long="--axis",



More information about the yt-svn mailing list