bindir = join('psi', 'devsonly', 'bin') scripts = [join(bindir, x) for x in os.listdir(bindir) if x.endswith('.py')]