prompt-toolkit / pymux

A terminal multiplexer (like tmux) in Python
BSD 3-Clause "New" or "Revised" License
1.45k stars 82 forks source link

Use gettempdir() for sockets #30

Closed eas604 closed 8 years ago

eas604 commented 8 years ago

Change uses tempfile.gettempdir() for working with sockets, rather than hard-coding /tmp. This addresses #12 .

jonathanslenders commented 8 years ago

Thanks a lot @eas604! Merged in: https://github.com/jonathanslenders/pymux/commit/70d99014208ecea7e828690fb9d11dfc66beb59e

(I also wonder whether we can get rid of the bit of code duplication that we have here. That would be a different commit.)

eas604 commented 8 years ago

Which code duplication do you mean? The multiple locations where the socket file is defined?

jonathanslenders commented 8 years ago

Yes, that is a small bit of duplication that I introduced in the beginning. Maybe nothing to worry about.