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):
raise KeyError("no such manga: (%s, %s)" % (libnm, id))
while True:
try:
- fp = openwdir(pj(self.dir, "%i.manga" % seq), "wx")
+ fp = openwdir(pj(self.dir, "%i.manga" % seq), "x")
except IOError:
seq += 1
else: