X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=manga%2Fprofile.py;h=27bf86e7fa3d5fb7c8459424eee4d38c8bc278cb;hb=dcaf33f5e6a46ce130995956e5b6eeafbe688bc3;hp=e8414a1afbd5548a1fdb23623413e5f99a513e7d;hpb=5997ac775166eef814b46dc8d5df7f9961397c28;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]