@classmethod
    def from_config(cls, config):
        script_location = config.get_main_option('script_location')
        if script_location is None:
            raise util.CommandError("No 'script_location' key "
                                    "found in configuration.")
        truncate_slug_length = config.get_main_option("truncate_slug_length")
        if truncate_slug_length is not None:
            truncate_slug_length = int(truncate_slug_length)
        return ScriptDirectory(
                    util.coerce_resource_to_filename(script_location),
                    file_template=config.get_main_option(
                                        'file_template',
                                        _default_file_template),
                    truncate_slug_length=truncate_slug_length,
                    sourceless=config.get_main_option("sourceless") == "true"
                    )
Return an absolute path normalized and symbolic links eliminated
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/alembic/script.py/ScriptDirectory.from_config--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/javapath.py/realpath