Added a simple method for open profile files.
authorFredrik Tolf <fredrik@dolda2000.com>
Sat, 13 Jul 2013 05:38:44 +0000 (07:38 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Sat, 13 Jul 2013 05:38:44 +0000 (07:38 +0200)
manga/profile.py

index e8414a1..27bf86e 100644 (file)
@@ -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]