Create media directory when running setup.py
This commit is contained in:
parent
1502bf94b6
commit
de46993714
1 changed files with 2 additions and 0 deletions
2
setup.py
2
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)
|
||||
|
|
Loading…
Reference in a new issue