:orphan: .. _s_11PytoRuntime6ScriptO7fileURLyAC10Foundation0E0V_SbSSSgtcACmF: ``fileURL(_:runAsMain:package:)`` ================================= A script from a file URL. .. raw:: html .. rubric:: Declaration .. raw:: html
.. rubric:: 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.