Python Forum
moving from os to subprocess
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
moving from os to subprocess
#11
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020