def main()

in Xcode/XcodeVersionEmitter.py [0:0]


    def main(self):
        """Main."""
        if not self.env["dont_skip"]:
            self.output("dont_skip is false, so skipping this Processor.")
            return
        url = self.env["url"]
        url_split_object = urlsplit(url)
        # "https://download.developer.apple.com/Developer_Tools/Xcode_10.2.1/Xcode_10.2.1.xip"  # noqa
        # "https://developer.apple.com//services-account/download?path=/Developer_Tools/Xcode_11_Beta_2/Xcode_11_Beta_2.xip"  # noqa
        filename = os.path.splitext(os.path.basename(url_split_object.path))[0].lower()
        self.output("Derived filename: {}".format(filename))
        self.env["derived_filename"] = filename

        destination = os.path.expandvars(self.env["output_filepath"])
        with open(destination, "w") as f:
            f.write(filename)
            self.output(
                "Derived filename ({}) written to disk at {}".format(
                    filename, destination
                )
            )