dashingsoft / pyarmor

A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.
http://pyarmor.dashingsoft.com
Other
3.4k stars 287 forks source link

[BUG] --exclude Error copying directory #1772

Closed 17Reset closed 5 months ago

17Reset commented 5 months ago

cmd:

pyarmor cfg data_files=*

output:

INFO     Python 3.12.2
INFO     Pyarmor 8.5.8 (group), 006040, non-profits
INFO     Platform windows.x86_64
INFO     change option "data_files" to new value "*"

cmd:

pyarmor gen  --exclude {working_path}/source/rtl/xilinx_vivado  --recursive  --enable-bcc  --obf-code 2  --output dist_pyarmor

output:

Section: finder

Current settings
  data_files = 0

Global settings

Local settings
  data_files = *
INFO     Python 3.12.2
INFO     Pyarmor 8.5.8 (group), 006040, non-profits
INFO     Platform windows.x86_64

INFO     copy data file source\rtl\xilinx_vivado\Vivado\2023.2\bin\loader.bat
INFO     copy data file source\rtl\xilinx_vivado\Vivado\2023.2\bin\rdiArgs.bat
INFO     copy data file source\rtl\xilinx_vivado\Vivado\2023.2\bin\setupEnv.bat
INFO     copy data file source\rtl\xilinx_vivado\Vivado\2023.2\bin\vivado.bat

image What's the problem: There is an error in pyarmor's copying, as you can see from the above output, there is a directory named 2023.2 in my directory, but after copying it with pyarmor, the output changes to 2023, which leads to a serious error

jondy commented 5 months ago

Got it, I'll check it.

jondy commented 5 months ago

It wll be fixed in next release