branch : pmacs2
This commit is contained in:
moculus 2008-12-13 03:46:06 +00:00
parent 74b01a5e60
commit 79e5a82cce
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import commands, dirutil, grp, mailbox, method, mode, os.path, pwd, re, sys 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 mode.mutt import MuttGrammar
from lex import Grammar, PatternRule, RegionRule, PatternGroupRule from lex import Grammar, PatternRule, RegionRule, PatternGroupRule
from point import Point from point import Point
@ -49,7 +49,7 @@ class Mp3Buffer(Buffer):
btype = 'mp3' btype = 'mp3'
def __init__(self, path): def __init__(self, path):
Buffer.__init__(self) Buffer.__init__(self)
self.path = os.path.realpath(path) self.path = util.expand_tilde(path)
self.base = os.path.basename(self.path) self.base = os.path.basename(self.path)
self.af = eyeD3.tag.Mp3AudioFile(self.path) self.af = eyeD3.tag.Mp3AudioFile(self.path)
self.tag = self.af.getTag() self.tag = self.af.getTag()