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()