Issue with obfuscating multiple files using spec file in Pyarmor #1961
Unanswered
hoangthanh168
asked this question in
Q&A
Replies: 1 comment
-
Please list each script in command line, refer to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm encountering an issue while using Pyarmor to obfuscate and bundle my project with PyInstaller and a
.spec
file. I have a logger module in my application that logs the module name and function name. However, after running the obfuscation process, it seems that onlymain.py
is obfuscated, while other files liketimeline_frame.py
andmain_ui.py
are not.Project structure:
Contents of main.spec
I used the following command to obfuscate the files and generate the executable:
After running this command, I see that all three files are obfuscated and saved in
.pyarmor/pack/dist
. However, when I run the generatedmain.exe
, the log shows that onlymain.py
is obfuscated, and the other files are not. Here's an example from the log:As you can see,
main_ui.py
is not obfuscated (the log shows clear module and function names), whereasmain.py
shows<frozen main>:pyarmor__1:11 - Starting application...
, which indicates successful obfuscation.Question:
How can I ensure that all the files (
main.py
,timeline_frame.py
,main_ui.py
) are obfuscated and packaged correctly when using a.spec
file? Is there something additional I need to configure in the.spec
file or another step I'm missing?Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions