Skip to content

Commit 2ce3c08

Browse files
committedFeb 16, 2016
gui/applets: escape backslashes in {python} and {ipc_address}
1 parent 6196aaf commit 2ce3c08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

Diff for: ‎artiq/gui/applets.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ async def start(self):
110110
if "{ipc_address}" not in self.command:
111111
logger.warning("IPC address missing from command for %s",
112112
self.applet_name)
113-
command = self.command.format(python=sys.executable,
114-
ipc_address=self.ipc.get_address())
113+
command = self.command.format(
114+
python=sys.executable.replace("\\", "\\\\"),
115+
ipc_address=self.ipc.get_address().replace("\\", "\\\\")
116+
)
115117
logger.debug("starting command %s for %s", command, self.applet_name)
116118
try:
117119
await self.ipc.create_subprocess(*shlex.split(command))

0 commit comments

Comments
 (0)