apenwarr-redo/redo/cmd_targets.py
Avery Pennarun bd8dbfb487 Switch to module-relative import syntax.
Now that the python scripts are all in a "redo" python module, we can
use the "new style" (ahem) package-relative imports.  This appeases
pylint, plus avoids confusion in case more than one package has
similarly-named modules.
2018-12-05 02:34:36 -05:00

19 lines
392 B
Python

import sys, os
from . import env, state
from .logs import err
def main():
state.init([])
if len(sys.argv[1:]) != 0:
err('%s: no arguments expected.\n' % sys.argv[0])
sys.exit(1)
cwd = os.getcwd()
for f in state.files():
if f.is_target():
print state.relpath(os.path.join(env.v.BASE, f.name), cwd)
if __name__ == '__main__':
main()