"git@developer.sourcefind.cn:hehl2/torchaudio.git" did not exist on "265c09d80e22c7c26063770ea2d11c0095270fc0"
Commit 7fd8d97e authored by 赵小蒙's avatar 赵小蒙
Browse files

fix error: version is 0.0.0

parent 18770556
...@@ -20,3 +20,8 @@ def write_version_to_commons(version): ...@@ -20,3 +20,8 @@ def write_version_to_commons(version):
commons_path = os.path.join(os.path.dirname(__file__), 'magic_pdf', 'libs', 'version.py') commons_path = os.path.join(os.path.dirname(__file__), 'magic_pdf', 'libs', 'version.py')
with open(commons_path, 'w') as f: with open(commons_path, 'w') as f:
f.write(f'__version__ = "{version}"\n') f.write(f'__version__ = "{version}"\n')
if __name__ == '__main__':
version_name = get_version()
write_version_to_commons(version_name)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment