内联注释处理器默认并没有启用
#2065
Replies: 1 comment 3 replies
|
不能重现,我这儿好着呢 |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
https://pyarmor.readthedocs.io/zh/latest/topic/obfuscation.html#id6 这个页面上说
内置的源代码处理器是内联注释处理器,默认启用的。
内联注释处理器只是简单的把源代码中每一行包含的 # pyarmor: 字符串替换为空,这样可以使得原来被注释的代码生效。
但是我的脚本中有这样一行代码:
# pyarmor: helpmenu.add_command(label = '许可信息', command = self.showKeyInfo, font = self.YAHEI10)我的原意是,我在本地调试代码时,不要显示许可信息(也没有许可信息可以显示),但是加密并打包后的程序中像大多数通过许可证管理许可的软件一样,显示用户的许可信息(Machine ID,有效期等)。
但是上述代码在加密并打包后的程序中并没有生效,帮助菜单下并没有“许可信息”这一项。
我问了deepseek,让我添加这么个配置:
[runtime]
enable_inline_comment = 1 # 确保内联注释处理器启用
我自己搜了此项目的源码,也试过:
[runtime]
enable_inline_comments = 1 # 确保内联注释处理器启用
均不能使内联注释处理器正常使用,该如何解决?
我找了英文文档,发现这部分文档暂时还没有。
All reactions