diff --git a/atrcopy/__init__.py b/atrcopy/__init__.py index a4665b4..e141190 100644 --- a/atrcopy/__init__.py +++ b/atrcopy/__init__.py @@ -249,8 +249,16 @@ def list_templates(): path = get_template_path() files = glob.glob(os.path.join(path, "*")) + print "Available templates:" for name in files: - print os.path.basename(name) + if name.endswith(".inf"): + continue + try: + with open(name + ".inf", "r") as fh: + description = fh.read().strip() + except IOError: + description = "" + print "%-12s %s" % (os.path.basename(name), description) def get_template_data(template): diff --git a/atrcopy/templates/dos2dd.inf b/atrcopy/templates/dos2dd.inf new file mode 100644 index 0000000..781880c --- /dev/null +++ b/atrcopy/templates/dos2dd.inf @@ -0,0 +1 @@ +Atari 8-bit DOS 2 double density (180K), empty VTOC diff --git a/atrcopy/templates/dos2sd.inf b/atrcopy/templates/dos2sd.inf new file mode 100644 index 0000000..8868452 --- /dev/null +++ b/atrcopy/templates/dos2sd.inf @@ -0,0 +1 @@ +Atari 8-bit DOS 2 single density (90K), empty VTOC diff --git a/atrcopy/templates/dos33.inf b/atrcopy/templates/dos33.inf new file mode 100644 index 0000000..79d38ae --- /dev/null +++ b/atrcopy/templates/dos33.inf @@ -0,0 +1 @@ +Apple ][ DOS 3.3 (140K) standard RWTS, empty VTOC diff --git a/atrcopy/templates/dos3ed.inf b/atrcopy/templates/dos3ed.inf new file mode 100644 index 0000000..3ca8b26 --- /dev/null +++ b/atrcopy/templates/dos3ed.inf @@ -0,0 +1 @@ +Atari 8-bit DOS 3 enhanced density (130K), empty VTOC