From 22d22bc5e3c6e3b390cc873769323efbb047c003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Tue, 2 Apr 2019 11:47:21 +0200 Subject: [PATCH] Avoid providing default pipe locations in PipeIOServer --- pipe_io_server/pipe_io_server.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pipe_io_server/pipe_io_server.py b/pipe_io_server/pipe_io_server.py index 546de0e..1563484 100644 --- a/pipe_io_server/pipe_io_server.py +++ b/pipe_io_server/pipe_io_server.py @@ -1,5 +1,3 @@ -from os.path import join -from secrets import token_urlsafe from abc import ABC, abstractmethod from threading import Event @@ -17,10 +15,6 @@ class PipeIOServer(ABC): self._io_threads = (self._reader_thread, self._writer_thread) def _create_pipes(self): - if not self.in_pipe or not self.out_pipe: - pipe_id = token_urlsafe(6) - self._in_pipe = join('/tmp', f'in_pipe_{pipe_id}') - self._out_pipe = join('/tmp', f'out_pipe_{pipe_id}') Pipe(self.in_pipe).recreate() Pipe(self.out_pipe).recreate()