Skip to content

Commit

Permalink
Generated from f3e9da529d2d8c5346d88e584a2a9ac6665e5281
Browse files Browse the repository at this point in the history
correct the operationid
  • Loading branch information
SDK Automation committed Apr 27, 2020
1 parent 0fe5552 commit 2eb24d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/storage/azure-mgmt-storagecache/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd:
with open(os.path.join(package_folder_path, 'version.py')
if os.path.exists(os.path.join(package_folder_path, 'version.py'))
else os.path.join(package_folder_path, '_version.py'), 'r') as fd:
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)

Expand Down

0 comments on commit 2eb24d4

Please sign in to comment.