Skip to content

Commit d3006bf

Browse files
committed
ensure that the local CWD being the package directory being added to the PATH doesn't break import_all script
1 parent 177efe0 commit d3006bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/tools/azure-sdk-tools/azpysdk/import_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def run(self, args: argparse.Namespace) -> int:
7676
import_script_all = "from {0} import *".format(parsed.namespace)
7777
commands = [executable, "-c", import_script_all]
7878

79-
outcomes.append(check_call(commands))
79+
outcomes.append(check_call(commands, cwd=staging_directory))
8080
logger.info("Verified module dependency, no issues found")
8181
else:
8282
logger.info("Package {} is excluded from dependency check".format(parsed.name))

0 commit comments

Comments
 (0)