[Yt-svn] yt-commit r563 - trunk/yt/lagos

joishi at wrangler.dreamhost.com joishi at wrangler.dreamhost.com
Mon Jun 16 15:58:10 PDT 2008


Author: joishi
Date: Mon Jun 16 15:58:10 2008
New Revision: 563
URL: http://yt.spacepope.org/changeset/563

Log:

* added an os.path.expanduser() around the self.directory attribute in the base class constructor



Modified:
   trunk/yt/lagos/OutputTypes.py

Modified: trunk/yt/lagos/OutputTypes.py
==============================================================================
--- trunk/yt/lagos/OutputTypes.py	(original)
+++ trunk/yt/lagos/OutputTypes.py	Mon Jun 16 15:58:10 2008
@@ -37,7 +37,7 @@
         self.data_style = data_style
         self.parameter_filename = str(filename)
         self.basename = os.path.basename(filename)
-        self.directory = os.path.dirname(filename)
+        self.directory = os.path.expanduser(os.path.dirname(filename))
         self.fullpath = os.path.abspath(self.directory)
         if len(self.directory) == 0:
             self.directory = "."



More information about the yt-svn mailing list