X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=manga%2Fprofile.py;h=27bf86e7fa3d5fb7c8459424eee4d38c8bc278cb;hb=477d3ba08adf5083f22a92a9836d32dfa679472a;hp=e8414a1afbd5548a1fdb23623413e5f99a513e7d;hpb=59e32d8da9a36ba7b2395d8168d335786e9b4c5d;p=automanga.git diff --git a/manga/profile.py b/manga/profile.py index e8414a1..27bf86e 100644 --- a/manga/profile.py +++ b/manga/profile.py @@ -196,6 +196,9 @@ class profile(object): for nm, (libnm, id) in map.iteritems(): f.write(consline("alias", nm, libnm, id) + "\n") + def file(self, name, mode="r"): + return openwdir(pj(self.dir, name), mode) + def getalias(self, nm): return self.getaliases()[nm]