]> code.delx.au - pymsnt/commitdiff
Fixed md5 update routine to work if spooldir is not set.
authorjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Sat, 15 Jul 2006 01:31:42 +0000 (01:31 +0000)
committerjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Sat, 15 Jul 2006 01:31:42 +0000 (01:31 +0000)
git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@199 55fbd22a-6204-0410-b2f0-b6c764c7e90a

committer: jamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>

src/housekeep.py

index 882e35c8deed22b1b95ba871f7b3d14b888577d5..82a459bdd46ebff23deb0dca16f7e73d61b6bc7e 100644 (file)
@@ -133,8 +133,8 @@ def doMD5HashDirUpgrade():
        if os.path.exists(pre + "avatars"):
                # Remove the avatars dir that gets created when we import
                # legacy/glue.py (it only contains the defaultAvatar)
-               shutil.rmtree(config.spooldir + X + "avatars")
-               shutil.move(pre + "avatars", config.spooldir + X + "avatars")
+               shutil.rmtree(os.path.join(config.spooldir, "avatars"))
+               shutil.move(pre + "avatars", os.path.join(config.spooldir, "avatars"))
        else:
                print "Could not move your cached avatars directory automatically. It is safe to delete it, the avatars will be recreated as necessary."