Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit e30b33a

Browse files
committed
Fix pyarmor compilation
1 parent 13142ee commit e30b33a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

compiler.nim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,11 @@ proc compiler(): int =
227227

228228
var pyinst_cmd = pyinst & " --onefile --noconsole --hidden-import mss"
229229

230-
var dat: string = fmt" --add-data ""Variables.py;."""
231-
pyinst_cmd.add(dat)
230+
if obfuscate:
231+
var dat: string = fmt" --add-data 'Variables.py;.'"
232+
else:
233+
var dat: string = fmt" --add-data ""Variables.py;."""
234+
pyinst_cmd.add(dat)
232235

233236
var pyarmor_cmd: string
234237
if icon:

0 commit comments

Comments
 (0)