devtools/devctl.py
changeset 2633 bc9386c3b2c9
parent 2615 1ea41b7c0836
child 2650 18aec79ec3a3
equal deleted inserted replaced
2632:920bfaff60a4 2633:bc9386c3b2c9
    14 from os.path import join, exists, abspath, basename, normpath, split, isdir
    14 from os.path import join, exists, abspath, basename, normpath, split, isdir
    15 from warnings import warn
    15 from warnings import warn
    16 
    16 
    17 from logilab.common import STD_BLACKLIST
    17 from logilab.common import STD_BLACKLIST
    18 from logilab.common.modutils import get_module_files
    18 from logilab.common.modutils import get_module_files
    19 from logilab.common.textutils import get_csv
    19 from logilab.common.textutils import splitstrip
    20 from logilab.common.shellutils import ASK
    20 from logilab.common.shellutils import ASK
    21 from logilab.common.clcommands import register_commands
    21 from logilab.common.clcommands import register_commands
    22 
    22 
    23 from cubicweb import CW_SOFTWARE_ROOT as BASEDIR, BadCommandUsage, underline_title
    23 from cubicweb import CW_SOFTWARE_ROOT as BASEDIR, BadCommandUsage, underline_title
    24 from cubicweb.__pkginfo__ import version as cubicwebversion
    24 from cubicweb.__pkginfo__ import version as cubicwebversion
   533             answer = ASK.ask("Depends on cube %s? " % stdtype,
   533             answer = ASK.ask("Depends on cube %s? " % stdtype,
   534                              ('N','y','skip','type'), 'N')
   534                              ('N','y','skip','type'), 'N')
   535             if answer == 'y':
   535             if answer == 'y':
   536                 includes.append(stdtype)
   536                 includes.append(stdtype)
   537             if answer == 'type':
   537             if answer == 'type':
   538                 includes = get_csv(raw_input('type dependancies: '))
   538                 includes = splitstrip(raw_input('type dependancies: '))
   539                 break
   539                 break
   540             elif answer == 'skip':
   540             elif answer == 'skip':
   541                 break
   541                 break
   542         return includes
   542         return includes
   543 
   543