Juan
Juan

Reputation: 1372

read /etc/fstab entries from python

Is there a python package that knows how to parse the fstab file? Perhaps similar to getmntent(3) in linux.

Admittedly it's not hard to grok that with python (or awk(1), etc.), but I was wondering if that wheel had already been invented.

Upvotes: 0

Views: 2409

Answers (1)

user2665694
user2665694

Reputation:

A simple Google search would have given you this:

https://launchpad.net/python-fstab

Upvotes: 2

Related Questions