Commit 379bcb45 authored by Fabien  MAREUIL's avatar Fabien MAREUIL
Browse files

bug fix: create directory if doesn't exist

parent 1ca372f5
from import AppCommand, CommandError
from import TaskOutWrapper
from ippidb.models import Chain, InteractFile
from django import settings
from django.core.files import File
from celery import states
import os
......@@ -72,6 +73,12 @@ class Command(AppCommand):
label = options.get("label")
if typefile == "interactibility" and not label:
raise CommandError("Error: Interactibility need a label")
if typefile == "druggability":
storage_path ="content/mrc_files")
storage_path ="content/interact_files")
if not os.path.exists(storage_path)
list_files = glob.glob(os.path.join(mrcpath, pattern))
for data in list_files:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment