use a temporary directory to avoid permission problems

This commit is contained in:
Jakob Ketterl
2019-07-13 17:16:38 +02:00
parent efc5b936f8
commit 935e79c9c2
4 changed files with 18 additions and 7 deletions

View File

@ -74,6 +74,10 @@ class dsp(object):
self.unvoiced_quality = 1
self.modification_lock = threading.Lock()
self.output = output
self.temporary_directory = "/tmp"
def set_temporary_directory(self, what):
self.temporary_directory = what
def chain(self,which):
chain = ["nc -v 127.0.0.1 {nc_port}"]
@ -468,7 +472,7 @@ class dsp(object):
logger.debug(command_base)
#create control pipes for csdr
self.pipe_base_path="/tmp/openwebrx_pipe_{myid}_".format(myid=id(self))
self.pipe_base_path = "{tmp_dir}/openwebrx_pipe_{myid}_".format(tmp_dir=self.temporary_directory, myid=id(self))
self.try_create_pipes(self.pipe_names, command_base)