10
0
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:
Thomas Applencourt 2015-03-18 15:29:03 +01:00
parent cf6314f405
commit 85590ee477

View File

@ -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)