diff --git a/ChangeLog b/ChangeLog index 64c2c63..156b8f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-05-23 Thomas Vander Stichele + + * morituri/common/Makefile.am: + * morituri/common/drive.py (added): + Add drive module. + 2009-05-23 Thomas Vander Stichele * morituri/program/cdparanoia.py: diff --git a/morituri/common/Makefile.am b/morituri/common/Makefile.am index ba4b57b..cf9fa0b 100644 --- a/morituri/common/Makefile.am +++ b/morituri/common/Makefile.am @@ -7,6 +7,7 @@ morituri_PYTHON = \ accurip.py \ checksum.py \ common.py \ + drive.py \ log.py \ logcommand.py \ renamer.py \ diff --git a/morituri/common/drive.py b/morituri/common/drive.py new file mode 100644 index 0000000..26f1988 --- /dev/null +++ b/morituri/common/drive.py @@ -0,0 +1,27 @@ +# -*- Mode: Python; test-case-name: morituri.test.test_common_drive -*- +# vi:si:et:sw=4:sts=4:ts=4 + +# Morituri - for those about to RIP + +# Copyright (C) 2009 Thomas Vander Stichele + +# This file is part of morituri. +# +# morituri is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# morituri is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with morituri. If not, see . + +import pycdio +import cdio + +def getAllDevicePaths(): + return cdio.get_devices_with_cap(pycdio.FS_AUDIO, False)