Make calls to logs.setup() explicit in each cmd.
Further reducing magic implicit behaviour to make code easier to follow.
This commit is contained in:
parent
474e12eed8
commit
4d2b4cfccb
12 changed files with 49 additions and 39 deletions
|
|
@ -1,10 +1,12 @@
|
|||
import sys, os
|
||||
from . import env, state
|
||||
from . import env, logs, state
|
||||
|
||||
|
||||
def main():
|
||||
try:
|
||||
env.inherit()
|
||||
logs.setup(tty=sys.stderr, pretty=env.v.PRETTY, color=env.v.COLOR)
|
||||
|
||||
me = os.path.join(env.v.STARTDIR,
|
||||
os.path.join(env.v.PWD, env.v.TARGET))
|
||||
f = state.File(name=me)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue