python-adfs
changeset 45:c7dac854aca5
Tidied up files for a release.
| author | David Boddie <david@boddie.org.uk> |
|---|---|
| date | Tue May 20 03:09:45 2003 +0200 |
| parents | 374aa4ac482c |
| children | 75a84b1d21da |
| files | ADF2INF.py ADFSlib.py LICENSE.txt MANIFEST README.txt setup.py |
| diffstat | 6 files changed, 83 insertions(+), 12 deletions(-) [+] |
line diff
1.1 --- a/ADF2INF.py Tue Apr 15 23:46:01 2003 +0200 1.2 +++ b/ADF2INF.py Tue May 20 03:09:45 2003 +0200 1.3 @@ -1,11 +1,33 @@ 1.4 #! /usr/bin/env python 1.5 """ 1.6 - Name : ADF2INF.py 1.7 - Author : David Boddie 1.8 - Created : Wed 18th October 2000 1.9 - Updated : Tue 15th April 2003 1.10 - Purpose : Convert ADFS disc images (ADF) to INF files 1.11 - WWW : http://david.boddie.org.uk/Projects/Python/ADFSlib 1.12 +Name : ADF2INF.py 1.13 +Author : David Boddie 1.14 +Created : Wed 18th October 2000 1.15 +Updated : Tue 15th April 2003 1.16 +Purpose : Convert ADFS disc images (ADF) to INF files 1.17 +WWW : http://david.boddie.org.uk/Projects/Python/ADFSlib 1.18 + 1.19 +License: 1.20 + 1.21 +Copyright (c) 2000-2003, David Boddie 1.22 + 1.23 +Permission is hereby granted, free of charge, to any person obtaining a copy 1.24 +of this software and associated documentation files (the "Software"), to 1.25 +deal in the Software without restriction, including without limitation the 1.26 +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 1.27 +sell copies of the Software, and to permit persons to whom the Software is 1.28 +furnished to do so, subject to the following conditions: 1.29 + 1.30 +The above copyright notice and this permission notice shall be included in 1.31 +all copies or substantial portions of the Software. 1.32 + 1.33 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1.34 +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1.35 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1.36 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1.37 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 1.38 +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 1.39 +DEALINGS IN THE SOFTWARE. 1.40 """ 1.41 1.42
2.1 --- a/ADFSlib.py Tue Apr 15 23:46:01 2003 +0200 2.2 +++ b/ADFSlib.py Tue May 20 03:09:45 2003 +0200 2.3 @@ -3,6 +3,26 @@ 2.4 ADFSlib.py 2.5 2.6 A library for reading ADFS disc images. 2.7 + 2.8 +Copyright (c) 2003, David Boddie 2.9 + 2.10 +Permission is hereby granted, free of charge, to any person obtaining a copy 2.11 +of this software and associated documentation files (the "Software"), to 2.12 +deal in the Software without restriction, including without limitation the 2.13 +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 2.14 +sell copies of the Software, and to permit persons to whom the Software is 2.15 +furnished to do so, subject to the following conditions: 2.16 + 2.17 +The above copyright notice and this permission notice shall be included in 2.18 +all copies or substantial portions of the Software. 2.19 + 2.20 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 2.21 +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 2.22 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 2.23 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 2.24 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 2.25 +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 2.26 +DEALINGS IN THE SOFTWARE. 2.27 """ 2.28 2.29 __author__ = "David Boddie <david@boddie.org.uk>" 2.30 @@ -1184,7 +1204,13 @@ 2.31 2.32 def create_directory(self, path, name = None): 2.33 2.34 - elements = list(os.path.split(path)) 2.35 + elements = [] 2.36 + 2.37 + while path != "": 2.38 + 2.39 + path, file = os.path.split(path) 2.40 + 2.41 + elements.insert(0, file) 2.42 2.43 if name is not None: 2.44
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/LICENSE.txt Tue May 20 03:09:45 2003 +0200 3.3 @@ -0,0 +1,21 @@ 3.4 +ADFSlib License: 3.5 + 3.6 +Copyright (c) 2003, David Boddie 3.7 + 3.8 +Permission is hereby granted, free of charge, to any person obtaining a copy 3.9 +of this software and associated documentation files (the "Software"), to 3.10 +deal in the Software without restriction, including without limitation the 3.11 +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 3.12 +sell copies of the Software, and to permit persons to whom the Software is 3.13 +furnished to do so, subject to the following conditions: 3.14 + 3.15 +The above copyright notice and this permission notice shall be included in 3.16 +all copies or substantial portions of the Software. 3.17 + 3.18 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 3.19 +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 3.20 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 3.21 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 3.22 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 3.23 +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 3.24 +DEALINGS IN THE SOFTWARE.
4.1 --- a/MANIFEST Tue Apr 15 23:46:01 2003 +0200 4.2 +++ b/MANIFEST Tue May 20 03:09:45 2003 +0200 4.3 @@ -1,5 +1,5 @@ 4.4 +ADF2INF.py 4.5 +ADFSlib.py 4.6 +LICENSE.txt 4.7 README.txt 4.8 -LICENSE.txt 4.9 setup.py 4.10 -ADFSlib.py 4.11 -ADF2INF.py
5.1 --- a/README.txt Tue Apr 15 23:46:01 2003 +0200 5.2 +++ b/README.txt Tue May 20 03:09:45 2003 +0200 5.3 @@ -1,5 +1,7 @@ 5.4 ADFSlib and ADF2INF 5.5 5.6 +Copyright (c) 2000-2003, David Boddie 5.7 + 5.8 This is a snapshot of my ADFS floppy disc reading library and its associated 5.9 utility. 5.10
6.1 --- a/setup.py Tue Apr 15 23:46:01 2003 +0200 6.2 +++ b/setup.py Tue May 20 03:09:45 2003 +0200 6.3 @@ -31,8 +31,8 @@ 6.4 description="ADFS disk image reader and utility", 6.5 author="David Boddie", 6.6 author_email="david@boddie.org.uk", 6.7 - url="http://www.boddie.org.uk/david/Projects/Python/ADF2INF", 6.8 - version="0.11", 6.9 + url="http://www.boddie.org.uk/david/Projects/Python/ADFSlib/", 6.10 + version="0.12", 6.11 py_modules=["ADFSlib"], 6.12 scripts=["ADF2INF.py"] 6.13 )
