Skip to content

Commit

Permalink
Refine code
Browse files Browse the repository at this point in the history
  • Loading branch information
jondy committed Feb 1, 2018
1 parent 09bb0a3 commit 3afcdb1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ def make_runtime(capsule, output, licfile=None, platform=None):
myzip.extract('pyshield.key', output)
myzip.extract('pyshield.lic', output)
myzip.extract('product.key', output)
myzip.extract('license.lic', output)

if licfile is not None:
if licfile is None:
myzip.extract('license.lic', output)
else:
shutil.copy2(licfile, os.path.join(output, 'license.lic'))

if platform is None:
Expand Down

0 comments on commit 3afcdb1

Please sign in to comment.