engine.py
def open_patch(in_file):
    """Returns a dict that contains Spot:WYG Patch."""
    # Open the csv and generat a new dict with just the relevant information
    with open(in_file, encoding='utf-16') as read_file:
        csv_reader = csv.DictReader(read_file)
        spot_map = {
            row['Spot']:f"WYG/{row['Patch'].split('.')[0]}/{row['Spot'].rjust(4, '0')}"
            for row in csv_reader
        }

    return spot_map
Returns a dict that contains Spot:WYG Patch.
Returns a dict that contains Spot:WYG Patch.
Returns a dict that contains Spot : WYG Patch .
def open_patch(in_file):
    with open(in_file, encoding='utf-16') as read_file:
        csv_reader = csv.DictReader(read_file)
        spot_map = {
            row['Spot']:f"WYG/{row['Patch'].split('.')[0]}/{row['Spot'].rjust(4, '0')}"
            for row in csv_reader
        }
    return spot_map
def open_patch ( in_file ) : with open ( in_file , encoding = 'utf-16' ) as read_file : csv_reader = csv . DictReader ( read_file ) spot_map = { row [ 'Spot' ] : f"WYG/{row['Patch'].split('.')[0]}/{row['Spot'].rjust(4, '0')}" for row in csv_reader } return spot_map
Returns a dict that contains Spot:WYG Patch.
Returns a dict that contains Spot : WYG Patch .
"""Returns a dict that contains Spot:WYG Patch.""" # Open the csv and generat a new dict with just the relevant information
in_file