Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 19, 2024
1 parent e642706 commit 1f32d3c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/sparqlunicorn_ontdoc/docgeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
from export.pages.geometryviewpage import GeometryViewPage
from export.pages.personpage import PersonPage

if os.path.exists("ontdocscript"):
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__))+"/ontdocscript/src/sparqlunicorn_ontdoc/")
else:
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
print(sys.path)
print(os.path.dirname(os.path.realpath(__file__)))
print(os.listdir(os.getcwd()))
Expand Down Expand Up @@ -1405,9 +1402,9 @@ def processCollectionPages(self,pagesmap,graph,subject,f):

def main():
prefixes={"reversed":{}}
print("PREFIX EXISTS? "+resourcepath+'prefixes.json '+str(os.path.exists(resourcepath+'prefixes.json')))
if os.path.exists(resourcepath+'prefixes.json'):
with open(resourcepath+'prefixes.json', encoding="utf-8") as f:
print("PREFIX EXISTS? "+resourcepath+'/prefixes.json '+str(os.path.exists(resourcepath+'/prefixes.json')))
if os.path.exists(resourcepath+'/prefixes.json'):
with open(resourcepath+'/prefixes.json', encoding="utf-8") as f:
prefixes = json.load(f)

prefixes["reversed"]["http://purl.org/cuneiform/"]="cunei"
Expand Down

0 comments on commit 1f32d3c

Please sign in to comment.