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.
This commit is contained in:
parent
0b648521fd
commit
bd8dbfb487
20 changed files with 40 additions and 41 deletions
|
|
@ -14,9 +14,9 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
import sys, os, traceback
|
||||
import env, options, state, builder, jobserver
|
||||
from atoi import atoi
|
||||
from logs import warn, err
|
||||
from . import env, options, state, builder, jobserver
|
||||
from .atoi import atoi
|
||||
from .logs import warn, err
|
||||
|
||||
optspec = """
|
||||
redo [targets...]
|
||||
|
|
@ -46,7 +46,7 @@ def main():
|
|||
targets = extra
|
||||
|
||||
if opt.version:
|
||||
import version
|
||||
from . import version
|
||||
print version.TAG
|
||||
sys.exit(0)
|
||||
if opt.debug:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue