mirror of
https://github.com/LCPQ/EMSL_Basis_Set_Exchange_Local
synced 2024-12-22 04:13:43 +01:00
Fix ~ in db path
This commit is contained in:
parent
cf6314f405
commit
85590ee477
@ -11,6 +11,10 @@ def checkSQLite3(db_path):
|
|||||||
|
|
||||||
from os.path import isfile, getsize
|
from os.path import isfile, getsize
|
||||||
|
|
||||||
|
db_path = os.path.expanduser(db_path)
|
||||||
|
db_path = os.path.expandvars(db_path)
|
||||||
|
db_path = os.path.abspath(db_path)
|
||||||
|
|
||||||
# Check if db file is readable
|
# Check if db file is readable
|
||||||
if not os.access(db_path, os.R_OK):
|
if not os.access(db_path, os.R_OK):
|
||||||
print >>sys.stderr, "Db file %s is not readable" % (db_path)
|
print >>sys.stderr, "Db file %s is not readable" % (db_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user