We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e7b9f1 + d6ad59f commit c0e6aceCopy full SHA for c0e6ace
pyt/__main__.py
@@ -79,15 +79,18 @@ def main(command_line_args=sys.argv[1:]): # noqa: C901
79
80
nosec_lines = defaultdict(set)
81
82
- for path in files:
+ if args.project_root:
83
+ directory = os.path.normpath(args.project_root)
84
+ project_modules = get_modules(directory, prepend_module_root=args.prepend_module_root)
85
+
86
+ for path in sorted(files):
87
if not args.ignore_nosec:
88
nosec_lines[path] = retrieve_nosec_lines(path)
89
- if args.project_root:
- directory = os.path.normpath(args.project_root)
- else:
90
+ if not args.project_root:
91
directory = os.path.dirname(path)
- project_modules = get_modules(directory, prepend_module_root=args.prepend_module_root)
92
93
94
local_modules = get_directory_modules(directory)
95
tree = generate_ast(path)
96
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments