So put it in its own file. Now it's safer to import and use helpers even if you can't safely touch vars.
16 lines
339 B
Python
Executable file
16 lines
339 B
Python
Executable file
#!/usr/bin/python
|
|
import sys, os
|
|
import vars, state
|
|
from log import err
|
|
|
|
|
|
try:
|
|
me = state.File(name=vars.TARGET)
|
|
me.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)
|