[mod] use builtin python function for creating dirs

This commit is contained in:
Laurent Peuch 2019-04-28 03:50:14 +02:00
parent e23604e763
commit 51f9dbe5ae

View file

@ -15,7 +15,8 @@ ACTIONSMAP_FILE = os.path.join(THIS_SCRIPT_DIR, '../data/actionsmap/yunohost.yml
OUTPUT_DIR = "output/"
# creates output directory
os.system("mkdir " + OUTPUT_DIR)
if not os.path.exists(OUTPUT_DIR):
os.makedirs(OUTPUT_DIR)
# man page of yunohost