Dolda2000 GitWeb
/
automanga.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59e32d8
)
Added a simple method for open profile files.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 13 Jul 2013 05:38:44 +0000
(07:38 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 13 Jul 2013 05:38:44 +0000
(07:38 +0200)
manga/profile.py
patch
|
blob
|
blame
|
history
diff --git
a/manga/profile.py
b/manga/profile.py
index
e8414a1
..
27bf86e
100644
(file)
--- 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]