Compare commits

..

1 Commits

Author SHA1 Message Date
a6746c49dc workaround popen trouble on windows 2025-03-26 16:15:17 +01:00
2 changed files with 2 additions and 4 deletions

View File

@ -10,9 +10,7 @@
(assoc-ref author "death_year")
(assoc-ref author "organization")
)
(if (string-null? authorId)
"unbekannt"
authorId))))
"unbekannt")))
#(define (find-author-ids-by contributionType authors)
(if authors

View File

@ -4,7 +4,7 @@
(define (yml-file->scm filename)
(if windows?
(let* ((tmpdir (or (getenv "TMPDIR") (getenv "TEMP") "/tmp"))
(port (mkstemp (string-append tmpdir "\\" (basename filename) "-XXXXXX") "r"))
(port (mkstemp (string-append tmpdir file-name-separator-string (basename filename) "-XXXXXX") "r"))
(tmpfilepath (port-filename port))
(python_code (string-append "import sys, yaml, json; f = open('" tmpfilepath "', 'w'); f.write(json.dumps(yaml.safe_load(open('" filename "')))); f.close()"))
(status (system (string-append "py -X utf8 -c \"" python_code "\"")))