From ea81f75e94bf7332436ee86fd6bbbcb2c2dc1438 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Thu, 19 May 2022 10:13:30 +0200 Subject: [PATCH] pySim-shell: explain why we insist on a DF or ADF Change-Id: I155cefb10864432d59a0a66410783b4c9772f8a4 --- pySim-shell.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pySim-shell.py b/pySim-shell.py index 06977f04..33c18fd3 100755 --- a/pySim-shell.py +++ b/pySim-shell.py @@ -515,6 +515,10 @@ class PySimCommands(CommandSet): context['COUNT'] += 1 df = self._cmd.rs.selected_file + # The currently selected file (not the file we are going to export) + # must always be an ADF or DF. From this starting point we select + # the EF we want to export. To maintain consistency we will then + # select the current DF again (see comment below). if not isinstance(df, CardDF): raise RuntimeError( "currently selected file %s is not a DF or ADF" % str(df))