Skip to content

Commit 77b57f0

Browse files
committed
posix fix
1 parent c60bed9 commit 77b57f0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/tikzplotlib/_line2d.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,9 @@ def _table(obj, data): # noqa: C901
288288
esp = data["externals search path"]
289289
opts.append(f"search path={{{esp}}}")
290290

291-
if len(opts) > 0:
292-
opts_str = ",".join(opts)
293-
content.append(f"table [{opts_str}] {{{rel_filepath}}};\n")
294-
else:
295-
content.append(f"table {{{rel_filepath}}};\n")
291+
opts_str = ("[" + ",".join(opts) + "] ") if len(opts) > 0 else ""
292+
posix_filepath = rel_filepath.as_posix()
293+
content.append(f"table {{opts_string}}{{{posix_filepath}}};\n")
296294
else:
297295
if len(opts) > 0:
298296
opts_str = ",".join(opts)

0 commit comments

Comments
 (0)