File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
eng/tools/azure-sdk-tools/packaging_tools Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -186,10 +186,13 @@ def create_report_from_func(function_attr):
186
186
187
187
# given an input of a name, we need to return the appropriate relative diff between the sdk_root and the actual package directory
188
188
def resolve_package_directory (package_name ):
189
- packages = [
190
- os .path .dirname (p )
191
- for p in (glob .glob ("{}/setup.py" .format (package_name )) + glob .glob ("sdk/*/{}/setup.py" .format (package_name )))
192
- ]
189
+ for install_file in ["setup.py" , "pyproject.toml" ]:
190
+ packages = [
191
+ os .path .dirname (p )
192
+ for p in (glob .glob ("{}/{}" .format (package_name , install_file )) + glob .glob ("sdk/*/{}/{}" .format (package_name , install_file )))
193
+ ]
194
+ if packages :
195
+ break
193
196
194
197
if len (packages ) > 1 :
195
198
print (
You can’t perform that action at this time.
0 commit comments