mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
simplify path construction with os.path.join
This commit is contained in:
parent
af81778588
commit
f7aa4cda79
@ -136,7 +136,7 @@ def get_default_library_path():
|
|||||||
fname.encode(filesystem_encoding)
|
fname.encode(filesystem_encoding)
|
||||||
except Exception:
|
except Exception:
|
||||||
fname = 'Calibre Library'
|
fname = 'Calibre Library'
|
||||||
x = os.path.expanduser('~'+os.sep+fname)
|
x = os.path.expanduser(os.path.join('~', fname))
|
||||||
if not os.path.exists(x):
|
if not os.path.exists(x):
|
||||||
try:
|
try:
|
||||||
os.makedirs(x)
|
os.makedirs(x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user