I am beginning to explore Python again after an absence of several years. I was running Python 2.7 on VMS a few years ago and wrote some scripts to do useful things.
Recently I installed the Python 3.5 (beta) release from VSI and started testing my scripts. One of them made use of the CRTL's from_vms() and to_vms() functions to translate filenames from VMS ODS-5 syntax to the Unix-style syntax assumed by Python.
Under Python 2.7 I could pass a wildcard VMS filespec to the script which would be expanded into a list of matching files:
Code: Select all
#-------------------------------------------------------------------------------
# Build a list of files to process
#
import vms.crtl
Files = []
for f in sys.argv[1:]: Files = Files + vms.crtl.from_vms(f,True)
So how should my script process a file specification which includes wildcards and VMS-format device & directory or logical names?
Thanks,
Jeremy Begg