INNER CODE UNIT · Python

create_empty_config

miztiik/AWS-Demos · how-to-examples/iam-s3-sqs-sns-video-transcoder.py:172

    def create_empty_config(cls, config_filepath):
        """
        Create a default JSON config file. After this method is run,
        you must edit the file before this application can work.
        """
        with open(config_filepath, 'w') as config:
            json.dump(cls.empty_config_data, config, indent=4)

    def ensure_local_setup(self):
        """
        Ensures that the local directory setup is sane by making sure
        that the directories exist and aren't the same.
        """
        if self.unconverted_directory == self.converted_directory:
            raise AutoTranscodeError(
                "The unconverted & converted directories can not be the same."
            )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…