From 79e5a82cce1cf0258c61f8030d271f789d6387e6 Mon Sep 17 00:00:00 2001 From: moculus Date: Sat, 13 Dec 2008 03:46:06 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- mode/mp3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mode/mp3.py b/mode/mp3.py index 50d2d94..d4cd343 100644 --- a/mode/mp3.py +++ b/mode/mp3.py @@ -1,5 +1,5 @@ import commands, dirutil, grp, mailbox, method, mode, os.path, pwd, re, sys -import buffer, default, window +import buffer, default, util, window from mode.mutt import MuttGrammar from lex import Grammar, PatternRule, RegionRule, PatternGroupRule from point import Point @@ -49,7 +49,7 @@ class Mp3Buffer(Buffer): btype = 'mp3' def __init__(self, path): Buffer.__init__(self) - self.path = os.path.realpath(path) + self.path = util.expand_tilde(path) self.base = os.path.basename(self.path) self.af = eyeD3.tag.Mp3AudioFile(self.path) self.tag = self.af.getTag()