I came across this python(.py) file but it has SHELL interpreter in the first line but subsequent lines are python code in it.
It's clear that it is python file, but why is the first line has SHELL shebang in it.
If this is a SHELL script, why is the file has the extentsion .py
If this is SHELL script, how does the below code interpreted by SHELL.
#!/bin/sh
''''exec python -u -- "$0" ${1+"$@"} # '''
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import json
import os