From: Fredrik Tolf Date: Sat, 13 Jul 2013 05:38:44 +0000 (+0200) Subject: Added a simple method for open profile files. X-Git-Url: http://dolda2000.com/gitweb/?p=automanga.git;a=commitdiff_plain;h=477d3ba08adf5083f22a92a9836d32dfa679472a Added a simple method for open profile files. --- 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]