Python开发利器——wingIDE破解技巧
16lz
2021-01-22
1、下载并安装。
http://wingide.com/
附件在64位的通用版linux测试通过。对于爱学习的同学。说明下方法,方便其他操作系统下的用户:
下载个python2.7的饭编译工具(比如uncompyle2).反编译这个文件.找到下面这个方法。把最后的return False 改成return True。再编译成pyc的文件放回src.zip,会发现不管有没有license,一样的用了。---原理也很简单。本来找不到license就返回False,找到才返回True。现在不管什么情况,都返回True。
def __FindLicenseFile(self):
15 ¦ """Find valid license file, first looking in the given user
14 ¦ directory for a license file and then in the global directory.
13 ¦ Returns True if a valid license file is found."""
12 ¦ user_file = os.path.normpath(fileutils.join(config.kUserWingDir, 'license.act'))
11 ¦ success, user_errors = self.__TryLicenseFiles(user_file)
10 ¦ if success:
9 ¦ ¦ return True
8 ¦ global_file = os.path.normpath(config.GetWingFilename('license.act'))
7 ¦ success, global_errors = self.__TryLicenseFiles(global_file)
6 ¦ if success:
5 ¦ ¦ return True
4 ¦ if len(global_errors) > 0:
3 ¦ ¦ user_errors.extend(global_errors)
2 ¦ user_errors.insert(0, _('No valid license file was found. The following errors occurred:'))
1 ¦ logger.warn('\n'.join(user_errors))
256 # return False
1 ¦ return True
该方法可行,仅供研究学习,请使用正版软件
更多相关文章
- python中查看变量内存地址的方法
- linux修改文件所属用户和组
- RHEL6误安装RHEL7的包导致glibc被升级后系统崩溃处理方法
- Linux的文件权限
- linux系统更改目录和文件的权限总结
- CentOS7.2 通过nfs设置共享文件夹
- Linux selinux关闭方法和防火墙关闭方法
- linux下查找包含关键字的文件
- Linux系统下Tar文件安装方法