如何从项目中导入模块

时间:2016-06-13 18:42:51

标签: python

如何将导入任务模块添加到执行模块? 这是一个

aaa/
    bbb/
        ccc/
           tasks.py
    ddd/
        eee/
           execute.py

1 个答案:

答案 0 :(得分:2)

您可以将const Person = Component({ store: Store('/companies'), render(){ var company = this.store.value()[this.props.companyId]; return ( <div id='ft-interviewee className="all-100"'> <p className="section-heading bold padding-top-20 font-22">Person</p> <div className="column-group horizontal-gutters"> <div className="all-10"> <div>{company.people.person.about}</div> </div> </div> ) } }); 目录添加到路径中,然后导入:

tasks.py