Skip to content

Commit

Permalink
create graphcache directory automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Feb 3, 2025
1 parent 8a61305 commit 749c743
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sparql_unicorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ def manageTripleStoreConfFiles(self):
dir = os.path.join(__location__, "tmp/geoconcepts")
for f in os.listdir(dir):
os.remove(os.path.join(dir, f))
if not os.path.exists(os.path.join(__location__, "tmp/graphcache")):
os.mkdir(os.path.join(__location__, "tmp/graphcache"))
if os.path.isfile(os.path.join(__location__, 'conf/triplestoreconf_personal.json')):
with open(os.path.join(__location__, 'conf/triplestoreconf_personal.json'), 'r') as myfile:
data = myfile.read()
Expand Down

0 comments on commit 749c743

Please sign in to comment.