Skip to content

Commit a9418b6

Browse files
author
Takashi Matsuo
committed
more print debuggin
1 parent 850abe7 commit a9418b6

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

noxfile-template.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
import os
1818
from pathlib import Path
19+
# Good old print debug
20+
import pprint
21+
import sys
1922

2023
import nox
2124

@@ -57,17 +60,22 @@
5760
'envs': {},
5861
}
5962

63+
pp = pprint.PrettyPrinter(indent=4)
64+
6065
try:
66+
print("sys.path")
67+
pp.pprint(sys.path)
6168
from noxfile_config import TEST_CONFIG_OVERRIDE
69+
import noxfile_config
70+
print('noxfile_config.__file__')
71+
print(noxfile_config.__file__)
6272
except ImportError:
73+
print('importing noxfile_config failed')
6374
TEST_CONFIG_OVERRIDE = {}
6475

6576
# Update the TEST_CONFIG with the user supplied values.
6677
TEST_CONFIG.update(TEST_CONFIG_OVERRIDE)
6778

68-
# Good old print debug
69-
import pprint
70-
pp = pprint.PrettyPrinter(indent=4)
7179
print("TEST_CONFIG:")
7280
pp.pprint(TEST_CONFIG)
7381

0 commit comments

Comments
 (0)