Skip to content

Commit 3afcdb1

Browse files
committed
Refine code
1 parent 09bb0a3 commit 3afcdb1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@ def make_runtime(capsule, output, licfile=None, platform=None):
125125
myzip.extract('pyshield.key', output)
126126
myzip.extract('pyshield.lic', output)
127127
myzip.extract('product.key', output)
128-
myzip.extract('license.lic', output)
129128

130-
if licfile is not None:
129+
if licfile is None:
130+
myzip.extract('license.lic', output)
131+
else:
131132
shutil.copy2(licfile, os.path.join(output, 'license.lic'))
132133

133134
if platform is None:

0 commit comments

Comments
 (0)