from pype.hosts.nuke.api.lib import (
    on_script_load,
    check_inventory_versions
)

import nuke
from pype.api import Logger

log = Logger().get_logger(__name__)


nuke.addOnScriptSave(on_script_load)
nuke.addOnScriptLoad(check_inventory_versions)
nuke.addOnScriptSave(check_inventory_versions)

log.info('Automatic syncing of write file knob to script version')
