[mythtv] [mythtv-commits] Ticket #2715: ValueError in mythburn.py due to improper parsing of "mount" command output
Jim Paris
jim at jtan.com
Wed Nov 22 08:18:33 UTC 2006
> The error was produced when processing the last line. Note that the name
> of the last mount point is "/media/MythTV BurnDVD" ''which includes a
> space''.
...
> The real fix will be to change the way that mount points are fetched or
> parsed. Parsing the output of "mount" may be brittle and sensitive to the
> version of mount. I don't readily see a way to iterate through mount
> points in Python, so we may just need to fix the parsing.
Consider parsing /proc/mounts. Spaces and other special chars appear
to be replaced by escape codes there.
-jim
More information about the mythtv-dev
mailing list