Skip to content

Commit 98409cf

Browse files
author
Ghislain Fourny
committed
Special case Windows.
1 parent 8a40094 commit 98409cf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/jsoniq/session.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
import importlib.resources as pkg_resources
99

1010
with pkg_resources.path("jsoniq.jars", "rumbledb-2.0.8.jar") as jar_path:
11-
jar_path_str = "file://" + str(jar_path)
11+
if (os.name == 'nt'):
12+
jar_path_str = str(jar_path)
13+
else:
14+
jar_path_str = "file://" + str(jar_path)
15+
print(f"[Info] Using RumbleDB jar file at: {jar_path_str}")
1216

1317
def get_spark_version():
1418
if os.environ.get('SPARK_HOME') != None:

0 commit comments

Comments
 (0)