o
    ij                     @   s    d dl Z d dlmZ dd ZdS )    N)datetimec                  C   s   d} t j| dd}t d}d| d}t j||}t j|s+t j|dd t j|sNt|d	d
d}|	d W d   |S 1 sIw   Y  |S )z}
    Create memory log file path following project conventions.
    Returns the path to the CSV file for memory logging.
    z#/var/www/html/status_management/srcfilememory_logsz%Y-%m-%dmemory_usage_z.csvT)exist_okwzutf-8)encodingz$Timestamp,Stage,Memory_MB,User_Info
N)
ospathjoinr   nowstrftimeexistsmakedirsopenwrite)base_dirfolder_name	timestamp	file_namecsv_file_pathf r   A/var/www/html/status_management/src/utils/make_memory_log_file.pymake_memory_log_file   s   
r   )r	   r   r   r   r   r   r   <module>   s    