With hardcoded path it is impossible to use git-import-dscs directly
from the repository while developing both tools
Signed-off-by: Guido Günther <agx@sigxcpu.org>
class GitImportDsc(gbpc.Command):
- cmd='/usr/bin/git-import-dsc'
+ # git-import-dsc should reside in the same directory as git-import-dscs
+ # so we can reuse the full path from the later
+ cmd = __file__[:-1]
def __init__(self, args):
if not os.access(self.cmd, os.X_OK):
raise GbpError, "%s not found - can't import packages" % self.cmd