Python Forum
moving from os to subprocess - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: moving from os to subprocess (/thread-7009.html)

Pages: 1 2


RE: moving from os to subprocess - Barrowman - Dec-20-2017

Thanks for the comments.
Sorry but maybe I wasn't clear. No-one else is doing this. It's running on a raspberry pi and the problem was that someone could plug in a USB Stick and my program does it's thing. Each Stick comes up as a different folder below /media/$USER/
As these are essentially produced for Windows they can end up with spaces in the name which Linux doesn't like. So as I am developing on a laptop I added the bit that gets $USER so it can know where to look for the Stick. Also it runs through the Stick's name and escapes the spaces so it can grab what it needs off the Stick. The people using it are not computer literate at all. To some it's an ordeal to just turn it on and click on an Icon.