File: //lib/python3/dist-packages/boto/pyami/__pycache__/scriptbase.cpython-312.pyc
�
ckF[� � �J � d dl Z d dlZd dlmZmZ d dlZd dlZ G d� de� Zy)� N)�ShellCommand�get_tsc �6 � e Zd Zdd�Zd d�Zd� Zd� Zd
d�Zd� Zy)�
ScriptBaseNc �� � t j j ddd� | _ | j j
| _ t � | _ |r t j j |� y y )N�Instancezinstance-id�default)
�boto�config�get�instance_id� __class__�__name__�namer �ts�read)�self�config_files �7/usr/lib/python3/dist-packages/boto/pyami/scriptbase.py�__init__zScriptBase.__init__ sO � ��;�;�?�?�:�}�i�P����N�N�+�+�� ��(�����K�K���[�)� � c �D � t j j ||� y �N)r
�utils�notify)r �subject�bodys r r zScriptBase.notify s � ��
�
���'�4�(r c �� � t j j |� s t j |� y y # t j
j
d|z � Y y xY w)NzError creating directory: %s)�os�path�isdir�mkdirr
�log�error�r r s r r"