Falldog / pyconcrete

Protect your python script, encrypt it as .pye and decrypt when import it
Apache License 2.0
692 stars 149 forks source link

No module named xx #103

Closed dd404x closed 1 year ago

dd404x commented 1 year ago

I encrypted all the .py files in the code folder using the following script. However, when running the script, I encountered a "library not found" error for some library files that are located in the current directory. What could be the reason for this error and how can I resolve it?

#!/bin/bash
# set the path to the code folder
CODE_FOLDER=./code

# loop through all .py files in the code folder and compile them
for file in $(find $CODE_FOLDER -type f -name "*.py"); do
    python3 pyconcrete-admin.py compile --source=$file --pye --remove-py --remove-pyc
done

image image