aboutsummaryrefslogblamecommitdiffstats
path: root/becommands/set_root.py
blob: 0775da3891263397c55870b771281fa6729d2d6b (plain) (tree)
1
2
3
4
5
6
7
                                                





                                                                 
"""Assign the root directory for bug tracking"""
from libbe import bugdir, cmdutil

def execute(args):
    if len(args) != 1:
        raise cmdutil.UserError("Please supply a directory path")
    bugdir.create_bug_dir(args[0])