Add licenses for third-party dependencies brought in by Studio.
PiperOrigin-RevId: 934300272 Change-Id: I7be1fccb4a80ea86803696699f53687f7d37da91
This commit is contained in:
committed by
Copybara-Service
parent
e2afec9153
commit
1f8c6f1183
+2
-2
@@ -41,10 +41,10 @@ EXT_PREFIX = 'mujoco.'
|
|||||||
def get_long_description():
|
def get_long_description():
|
||||||
"""Creates a long description for the package from bundled markdown files."""
|
"""Creates a long description for the package from bundled markdown files."""
|
||||||
current_dir = os.path.dirname('__file__')
|
current_dir = os.path.dirname('__file__')
|
||||||
with open(os.path.join(current_dir, 'README.md')) as f:
|
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
|
||||||
description = f.read()
|
description = f.read()
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(current_dir, 'LICENSES_THIRD_PARTY.md')) as f:
|
with open(os.path.join(current_dir, 'LICENSES_THIRD_PARTY.md'), encoding='utf-8') as f:
|
||||||
description = f'{description}\n{f.read()}'
|
description = f'{description}\n{f.read()}'
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user