* src/GrampsDb/_GrampsBSDDB.py: fix path for bsddb env in Windows.
svn: r7727
This commit is contained in:
parent
48420a2845
commit
c47460e89e
@ -1,3 +1,6 @@
|
|||||||
|
2006-11-28 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/GrampsDb/_GrampsBSDDB.py: fix path for bsddb env in Windows.
|
||||||
|
|
||||||
2006-11-28 Alex Roitman <shura@gramps-project.org>
|
2006-11-28 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/plugins/MediaManager.py (get_rel_path): Correctly work out
|
* src/plugins/MediaManager.py (get_rel_path): Correctly work out
|
||||||
the drive letter for the path.
|
the drive letter for the path.
|
||||||
|
@ -356,8 +356,10 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback):
|
|||||||
env_flags = env_flags | db.DB_RECOVER
|
env_flags = env_flags | db.DB_RECOVER
|
||||||
|
|
||||||
# Environment name is now based on the filename
|
# Environment name is now based on the filename
|
||||||
|
drive, tmp_name = os.path.splitdrive(self.full_name)
|
||||||
|
tmp_name = tmp_name.lstrip(os.sep)
|
||||||
env_name = os.path.join(os.path.expanduser(const.env_dir),
|
env_name = os.path.join(os.path.expanduser(const.env_dir),
|
||||||
self.full_name[1:])
|
tmp_name)
|
||||||
|
|
||||||
# Create the env dir if it does not exist
|
# Create the env dir if it does not exist
|
||||||
if not os.path.isdir(env_name):
|
if not os.path.isdir(env_name):
|
||||||
|
Loading…
Reference in New Issue
Block a user