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.
19 lines
392 B
Python
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()
|