1
0
mirror of https://github.com/gryf/uc1541.git synced 2026-02-02 19:55:46 +01:00

2 Commits
v3.0 ... v3.2

Author SHA1 Message Date
45bde06dd3 Changed shebang back to python.
In modern linux distributions, executable "python" is a symlink to the
selected Python interpreter. There could be multiple versions installed
on the system, and appropriate tools on certain distributions exists for
selecting default one. There is no need for changing it to explicitly
"python3" executable.
2019-09-15 09:40:10 +02:00
03b6236463 Not provided subcommand is fatal on Python3. 2019-07-20 13:49:34 +02:00
2 changed files with 9 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ file.
Rquirements
===========
* Python 2.7
* Python 2.7 or Python 3.6 or higher
* Vice installation (c1541 program in path)
Installation
@@ -87,6 +87,9 @@ script behaviour:
Changelog
=========
* **3.2** Changed shebang to ``python`` executable instead of ``python3``
* **3.1** Argparse on Python3 have different behaviour, where if no subcommand
is provided, it will pass anyway. Fixed.
* **3.0** Added beta quality Python3 support
* **2.8** Treat non standard discs a bit better
* **2.7** Added support for gzipped disk images

8
uc1541
View File

@@ -3,8 +3,8 @@
UC1541 Virtual filesystem
Author: Roman 'gryf' Dobosz <gryf73@gmail.com>
Date: 2018-02-13
Version: 3.0
Date: 2019-09-15
Version: 3.2
Licence: BSD
source: https://bitbucket.org/gryf/uc1541
mirror: https://github.com/gryf/uc1541
@@ -489,7 +489,9 @@ CALL_MAP = {'list': lambda a: Uc1541(a.arch).list(),
def parse_args():
"""Use ArgumentParser to check for script arguments and execute."""
parser = ArgumentParser()
subparsers = parser.add_subparsers(help='supported commands')
subparsers = parser.add_subparsers(help='supported commands',
dest='subcommand')
subparsers.required = True
parser_list = subparsers.add_parser('list', help="List contents of D64 "
"image")
parser_copyin = subparsers.add_parser('copyin', help="Copy file into D64 "