This fixes some pylint 'redefined builtins' warnings. While I was here, I fixed the others too by renaming a few local variables.
21 lines
482 B
Python
21 lines
482 B
Python
import sys, os
|
|
import env, state
|
|
|
|
|
|
def main():
|
|
try:
|
|
me = os.path.join(env.STARTDIR,
|
|
os.path.join(env.PWD, env.TARGET))
|
|
f = state.File(name=me)
|
|
f.add_dep('m', state.ALWAYS)
|
|
always = state.File(name=state.ALWAYS)
|
|
always.stamp = state.STAMP_MISSING
|
|
always.set_changed()
|
|
always.save()
|
|
state.commit()
|
|
except KeyboardInterrupt:
|
|
sys.exit(200)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|