Demo entry 6342038

qweqweqweq

   

Submitted by anonymous on Jan 05, 2017 at 13:07
Language: Python 3. Code size: 262 Bytes.

def creating_project_structure(site_config):
    folder_articles = set(os.path.dirname(
        article['source']) for article in site_config['articles'])
    for path in folder_articles:
        os.makedirs(os.path.join(PROJECT_FOLDER, path), exist_ok=True)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).