Skip to content

Commit

Permalink
set TMPDIR in a more platform-independent way #31
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Oct 14, 2022
1 parent d028775 commit ea6254a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codemeta/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import random
import re
from collections import Counter
from tempfile import gettempdir
from rdflib import Graph, Namespace, URIRef, BNode, Literal
from rdflib.namespace import RDF, RDFS, SKOS
from rdflib.compare import graph_diff
Expand Down Expand Up @@ -44,8 +45,7 @@

REPOSTATUS_SOURCE = "https://raw.githubusercontent.com/jantman/repostatus.org/master/badges/latest/ontology.jsonld"


TMPDIR = os.environ.get("TMPDIR","/tmp")
TMPDIR = os.environ.get("TMPDIR",gettempdir())

SCHEMA_LOCAL_SOURCE = "file://" + os.path.join(TMPDIR, "schemaorgcontext.jsonld")
CODEMETA_LOCAL_SOURCE = "file://" + os.path.join(TMPDIR, "codemeta.jsonld")
Expand Down

0 comments on commit ea6254a

Please sign in to comment.