Use os.path.join() for path concatenation
This commit is contained in:
parent
ceb931519d
commit
b0cb424770
@ -35,8 +35,9 @@ def adduser(username):
|
|||||||
|
|
||||||
cursor.execute("INSERT INTO auth VALUES (?, ?)", (username, hash))
|
cursor.execute("INSERT INTO auth VALUES (?, ?)", (username, hash))
|
||||||
|
|
||||||
if not os.path.isdir(COLLECTIONPATH+username):
|
colpath = os.path.join(COLLECTIONPATH, username)
|
||||||
os.makedirs(COLLECTIONPATH+username)
|
if not os.path.isdir(colpath):
|
||||||
|
os.makedirs(colpath)
|
||||||
|
|
||||||
conn.commit()
|
conn.commit()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user