From 477d3ba08adf5083f22a92a9836d32dfa679472a Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sat, 13 Jul 2013 07:38:44 +0200 Subject: [PATCH] Added a simple method for open profile files. --- manga/profile.py | 3 +++ 1 file changed, 3 insertions(+) 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] -- 2.11.0