From de469937140f6d791213c2159fbfd4efcddb0b93 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Mon, 27 Feb 2017 00:38:37 +0100 Subject: [PATCH] Create media directory when running setup.py --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 77e20c3..51cbb89 100755 --- a/setup.py +++ b/setup.py @@ -2,6 +2,8 @@ import configparser, os.path, tweepy, dbtools, getpass +os.mkdirs("media", exist_ok=True) + if os.path.isfile("config.cfg"): print("config.cfg already exists. Please remove it before running this script.") exit(1)