ó oBú]c@sKdZddlZddlmZddlmZeZdZd„ZdS(sB Scripts User ------------ **Summary:** run user scripts This module runs all user scripts. User scripts are not specified in the ``scripts`` directory in the datasource, but rather are present in the ``scripts`` dir in the instance configuration. Any cloud-config parts with a ``#!`` will be treated as a script and run. Scripts specified as cloud-config parts will be run in the order they are specified in the configuration. This module does not accept any config keys. **Internal name:** ``cc_scripts_user`` **Module frequency:** per instance **Supported distros:** all iÿÿÿÿN(tutil(t PER_INSTANCEtscriptscCs]tjj|jƒtƒ}ytj|ƒWn*tk rX|jd|t|ƒ‚nXdS(Ns"Failed to run module %s (%s in %s)( tostpathtjoint get_ipath_curt SCRIPT_SUBDIRRtrunpartst Exceptiontwarning(tnamet_cfgtcloudtlogt_argst runparts_path((sD/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_user.pythandle's   ( t__doc__Rt cloudinitRtcloudinit.settingsRt frequencyRR(((sD/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_user.pyts