a
    nVcJ                     @   sB  d dl mZmZmZ d dlZd dlZd dlZeeddZg Z	dZ
dZdZedZeeZi Zee
Zd ZeD ]^Zi ee< ee
e Zed	 eD ]2Zed	 eee vrg ee e< ee
e d
 e ZeD ]Zed	 eee e vre
e d
 e d
 e Zedrdee*Ze Zee e  e W d   n1 sX0    Y  qedreed,Z!e"e!Zee e  e W d   n1 s0    Y  qee e  e qqqpeddZ#e$ee# W d   n1 s 0    Y  ej%d
ddgddd Z&ej%dddgddd Z'dS )    )Flaskrender_templaterequestNstatic)static_folderz./static/assets/boxshowbarzdb.jsonz(find . -name '.DS_Store' -type f -delete/txtmdrwGETPOST)methodsc                   C   s   t dtttttdS )Nz
index.html)datafolderr   r   rut)r   r   r   r   r   r    r   r   (/var/www/html/megastudio/platform/app.pyplatform8   s    r   z/print/c               	   C   s>   t jdkrdS t jdkr:t jd} td| ttttt	dS d S )Nr   znope, go back to homer   testz	prin.html)	form_datar   r   r   r   r   )
r   methodformgetlistr   r   r   r   r   r   )r   r   r   r   dat=   s
    

r   )(flaskr   r   r   osjsonZ	mistletoe__name__appcontentsr   r   r   openfloadr   ZdictiolistdirZfoldersiir   Z
subfolderssystemZ	subfolderfilesfileZ	file_pathendswithr
   readoutputappendr   ZmarkdownZoutfiledumprouter   r   r   r   r   r   <module>   sR   







4
4,
