diff --git a/ChangeLog b/ChangeLog index ae6daab84..468f256c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-24 Douglas S. Blank + * src/ViewManager.py: + * src/DbLoader.py: + Remove os.chdir, no longer needed for relative path + 2008-02-24 Douglas S. Blank * src/DataViews/GrampletView.py: don't save deleted gramplets * src/glade/gramps.glade: changed tooltip from "close" to "delete" diff --git a/src/DbLoader.py b/src/DbLoader.py index c7dd6774f..8b066baa8 100644 --- a/src/DbLoader.py +++ b/src/DbLoader.py @@ -268,10 +268,6 @@ class DbLoader: try: self.dbstate.db.load(filename, self.uistate.pulse_progressbar, mode) self.dbstate.db.set_save_path(filename) - try: - os.chdir(os.path.dirname(filename)) - except (OSError, IOError): - print "could not change directory" except OSError, msg: ErrorDialog( _("Could not open file: %s") % filename, str(msg)) diff --git a/src/ViewManager.py b/src/ViewManager.py index 9cf91898d..225cf2d5e 100644 --- a/src/ViewManager.py +++ b/src/ViewManager.py @@ -1057,10 +1057,6 @@ class ViewManager: if value: (filename, title) = value self.db_loader.read_file(filename) - try: - os.chdir(os.path.dirname(filename)) - except (IOError, OSError): - pass self.__post_load_newdb(filename, 'x-directory/normal', title) def __read_recent_file(self, filename):