Commit 7641b6b8 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle 🐸 Committed by Tim-Philipp Müller
Browse files

scripts/release: fix license files paths

The previous version only worked when the script was run from
the root source directory

Part-of: <!168>
parent 4fd8e02b
Pipeline #499127 passed with stages
in 13 minutes and 51 seconds
......@@ -150,7 +150,7 @@ if __name__ == "__main__":
tar = tarfile.open(outname, 'w:xz')
tar.add(files, release_name, filter=exclude_filter)
for license in ['LICENSE.BSD', 'LICENSE.CC-BY-SA-4.0', 'LICENSE.LGPL-2.1', 'LICENSE.MIT', 'LICENSE.OPL']:
tar.add(license, os.path.join(release_name, license))
tar.add(os.path.join(HERE, '..', license), os.path.join(release_name, license))
os.chdir(os.path.dirname(readme))
tar.add(os.path.basename(readme), os.path.join(release_name, os.path.basename(readme)))
tar.close()
Supports Markdown
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