File: Debianize-paths

package info (click to toggle)
json-schema-test-suite 2.0.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 936 kB
  • sloc: python: 214; javascript: 39; makefile: 11
file content (17 lines) | stat: -rw-r--r-- 550 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Debianize paths

Index: json-schema-test-suite-2.0.0/bin/jsonschema_suite
===================================================================
--- json-schema-test-suite-2.0.0.orig/bin/jsonschema_suite
+++ json-schema-test-suite-2.0.0/bin/jsonschema_suite
@@ -25,9 +25,7 @@ else:
     )
 
 
-ROOT_DIR = os.path.abspath(
-    os.path.join(os.path.dirname(__file__), os.pardir).rstrip("__pycache__"),
-)
+ROOT_DIR = os.getenv("ROOT_DIR", "/usr/share/json-schema-test-suite")
 SUITE_ROOT_DIR = os.path.join(ROOT_DIR, "tests")
 
 REMOTES = {