Skip to content

Commit 2eedeb4

Browse files
authored
Merge pull request #637 from ijkwxyz/patch-1
fix: escape Windows paths in STARTUP_CODE string formatting
2 parents 8915c48 + 2663ced commit 2eedeb4

File tree

1 file changed

+1
-1
lines changed
  • py5_resources/py5_module/py5_tools/live_coding

1 file changed

+1
-1
lines changed

py5_resources/py5_module/py5_tools/live_coding/syncing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
def init_namespace(filename, global_namespace):
5656
global_namespace.clear()
57-
exec(STARTUP_CODE.format(Path(filename).absolute()), global_namespace)
57+
exec(STARTUP_CODE.format(Path(filename).absolute().as_posix()), global_namespace)
5858

5959

6060
def is_subdirectory(d, f):

0 commit comments

Comments
 (0)