Create media directory when running setup.py
This commit is contained in:
parent
1502bf94b6
commit
de46993714
2
setup.py
2
setup.py
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
import configparser, os.path, tweepy, dbtools, getpass
|
import configparser, os.path, tweepy, dbtools, getpass
|
||||||
|
|
||||||
|
os.mkdirs("media", exist_ok=True)
|
||||||
|
|
||||||
if os.path.isfile("config.cfg"):
|
if os.path.isfile("config.cfg"):
|
||||||
print("config.cfg already exists. Please remove it before running this script.")
|
print("config.cfg already exists. Please remove it before running this script.")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
Loading…
Reference in a new issue