mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 18:15:52 +01:00
simplify path construction with os.path.join
This commit is contained in:
parent
af81778588
commit
f7aa4cda79
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ def get_default_library_path():
|
|||
fname.encode(filesystem_encoding)
|
||||
except Exception:
|
||||
fname = 'Calibre Library'
|
||||
x = os.path.expanduser('~'+os.sep+fname)
|
||||
x = os.path.expanduser(os.path.join('~', fname))
|
||||
if not os.path.exists(x):
|
||||
try:
|
||||
os.makedirs(x)
|
||||
|
|
|
|||
Loading…
Reference in a new issue