Skip to content

Commit

Permalink
Create documentation directory in add_cswrapper()
Browse files Browse the repository at this point in the history
if it does not exist

fixes CATIA-Systems#369
  • Loading branch information
t-sommer committed Feb 8, 2022
1 parent c5adf10 commit 1b83f45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fmpy/cswrapper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ def add_cswrapper(filename, outfilename=None):

licenses_dir = os.path.join(unzipdir, 'documentation', 'licenses')

if not os.path.isdir(licenses_dir):
os.mkdir(licenses_dir)
os.makedirs(licenses_dir, exist_ok=True)

copyfile(src=shared_library, dst=os.path.join(unzipdir, 'binaries', platform, model_identifier + sharedLibraryExtension))
copyfile(license_file, os.path.join(unzipdir, 'documentation', 'licenses', 'fmpy-cswrapper.txt'))
Expand Down

0 comments on commit 1b83f45

Please sign in to comment.