mirror of
https://github.com/LCPQ/EMSL_Basis_Set_Exchange_Local
synced 2024-11-03 20:53:50 +01:00
Add os.path.join when needed thx to @berguis
This commit is contained in:
parent
c9cc04340a
commit
2027cabe98
@ -58,7 +58,8 @@ if __name__ == '__main__':
|
||||
if arguments["--db_path"]:
|
||||
db_path = arguments["--db_path"]
|
||||
else:
|
||||
db_path = os.path.dirname(__file__) + "/db/GAMESS-US.db"
|
||||
db_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
||||
"db/GAMESS-US.db")
|
||||
|
||||
# Check the db
|
||||
try:
|
||||
|
@ -76,8 +76,9 @@ class EMSL_dump:
|
||||
return parser_dict.keys()
|
||||
|
||||
def dwl_basis_list_raw(self):
|
||||
"""Return the source code of the iframe
|
||||
who contains the list of the basis set available"""
|
||||
"""Return the source code of the iframe who contains the list of the
|
||||
basis set available
|
||||
"""
|
||||
|
||||
print "Download all the name available in EMSL."
|
||||
print "It can take some time.",
|
||||
|
@ -4,7 +4,7 @@ import os
|
||||
|
||||
def get_dict_ele():
|
||||
"""Return dict[atom]=[abreviation]"""
|
||||
elt_path = os.path.dirname(sys.argv[0]) + "/src/misc/elts_abrev.dat"
|
||||
elt_path = os.path.join(os.path.dirname(sys.argv[0]), "/src/misc/elts_abrev.dat")
|
||||
|
||||
with open(elt_path, "r") as f:
|
||||
data = f.readlines()
|
||||
|
Loading…
Reference in New Issue
Block a user