fileURL(_:runAsMain:package:)¶
A script from a file URL.
Declaration
Parameters
runAsMain: Indicates whether it should run as
__main__or as its file name.package: The parent’s package name. Used for relative imports so they work, whether running as
__main__or not.