Dolda2000 GitWeb
/
automanga.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed some profile bugs in getmanga.
[automanga.git]
/
manga
/
profile.py
diff --git
a/manga/profile.py
b/manga/profile.py
index
081cd6c
..
cc0a4a1
100644
(file)
--- a/
manga/profile.py
+++ b/
manga/profile.py
@@
-4,7
+4,8
@@
pj = os.path.join
home = os.getenv("HOME")
if home is None or not os.path.isdir(home):
raise Exception("Could not find home directory for profile keeping")
home = os.getenv("HOME")
if home is None or not os.path.isdir(home):
raise Exception("Could not find home directory for profile keeping")
-basedir = pj(home, ".manga", "profiles")
+confdir = pj(home, ".manga")
+basedir = pj(confdir, "profiles")
class txfile(object):
def __init__(self, name, mode):
class txfile(object):
def __init__(self, name, mode):
@@
-255,7
+256,7
@@
class profile(object):
raise KeyError("no such manga: (%s, %s)" % (libnm, id))
while True:
try:
raise KeyError("no such manga: (%s, %s)" % (libnm, id))
while True:
try:
- fp = openwdir(pj(self.dir, "%i.manga" % seq), "
w
x")
+ fp = openwdir(pj(self.dir, "%i.manga" % seq), "x")
except IOError:
seq += 1
else:
except IOError:
seq += 1
else: