Replies: 6 comments
-
|
In auto-exclude mode, if pyarmor don't know the type of variable |
Beta Was this translation helpful? Give feedback.
-
|
Thank you so much @jondy! I just tried to use ...Sorry for bothering you but I still have questions... InitializeI initialize the environment. I confirmed that package is correctly tracked (I think). BuildAnd running update; I just ran Result and questionAnd I got the following distribution. I want to ask further questions.
I just assumed that the same files as tracked in # This is tracked files,
INFO mypkg
INFO mypkg/__init__.py
INFO mypkg/mod/__init__.py
INFO mypkg/mod/fn.py
# So, I assumed `dist/` would be
mypkg
mypkg/__init__.py
mypkg/mod/__init__.py
mypkg/mod/fn.py
# with obfuscation.Just a note; I think https://eke.dashingsoft.com/pyarmor/docs/en/user/tutorials.html#generate-rft-script |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, I have fixed typos for Regarding to This will be fixed in next release, pre-release is available here |
Beta Was this translation helpful? Give feedback.
-
|
I confirmed that Now a tree of dist: How should I take And also, I noticed there is no (Sorry for asking a bunch of questions, please just reply "see the documentation" if that is already explained) |
Beta Was this translation helpful? Give feedback.
-
|
Remove |
Beta Was this translation helpful? Give feedback.
-
|
I just built that again and confirmed now files are aligned with the original package! I'll read the documentation more carefully to understand pyarmor_runtime.so related. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Background
I'm now trying to obfuscate the package (mypkg) with the RFT mode.
python -m build --wheel+python -m wheel unpack.pyarmor gen --enable-bcc -i -r path/to/mypkg(I am using hatching to build the package and therefore not following https://pyarmor.readthedocs.io/en/latest/how-to/wheel.html).
What I'm now struggling
I got the following RFT trace logs:
However, in mod2, Cls2 is also imported from another module mod3.mod4 inside mypkg. This import renaming is skipped.
When I renamed
path/to/packagetopath/to/tmpand executedpyarmor gen --enable-bcc -i -r path/to/tmp, the previously skipped renaming of Cls2 was performed. So, I think the package name has some special power...I just went through the documentation, but I'm not sure why
from mypkg.mod3.mod4 import Cl2is not renamed.From "https://pyarmor.readthedocs.io/en/latest/topic/rftmode.html#insight-into-rft-mode".
I want to know the reason why import name is not renamed if that is imported from mypkg itself.
Beta Was this translation helpful? Give feedback.
All reactions