]> code.delx.au - pymsnt/blobdiff - src/avatar.py
Fixed default ft limit.
[pymsnt] / src / avatar.py
index 03edd7cdcfb6556ad21d7d6c9af1b0b73b0857ca..4339d7fa6c85390636d82a061ea94e2188c3b3bd 100644 (file)
@@ -6,7 +6,6 @@ import config
 from twisted.internet import reactor
 from tlib.xmlw import Element
 from debug import LogEvent, INFO, WARN, ERROR
-import jabw
 import config
 import lang
 import sha
@@ -74,7 +73,8 @@ class AvatarCache:
        def dir(self, key):
                """ Returns the full path to the directory that a 
                particular key is in. Creates that directory if it doesn't already exist. """
-               d = os.path.abspath(config.spooldir) + "/" + config.jid + "/avatars/" + key[0:3] + "/"
+               X = os.path.sep
+               d = os.path.os.path.abspath(config.spooldir) + X + config.jid + X + "avatars" + X + key[0:3] + X 
                if not os.path.exists(d):
                        os.makedirs(d)
                return d