Debugging today for several hours, think about it pylint integration into the pycharm, from the internet to find a baby post, but not good use, because the author wrote the script is to check the project and module, and my is a separate check a file, of course, the former will certainly be used in the later stage of the project. So we debug the author's script with Pycharm, know the use of Python's sys.argv, and accept the runtime parameters. Of course, debugging can also be input, as the C + + IDE VC + + debugging, Sys.argv[0] default is the current file, with the path name, so the real input parameters from sys.argv[1] started.
Run-edit configurations-environment variables in Settings
But at present only will enter one, do not know how to distinguish multiple parameters, the space comma and newline are not good use. Wait for the time to grope slowly.
The following is the problem of the search for the blog, cattle, many people, to study well. The script is too powerful ~ ~
1. The following article describes how to install Pycharm under Ubuntu, and how to set up shortcut methods without having to run the script file every time you start.
Ubuntu12.04 Installation Pycharm
2. The following cattle have implemented the Pylint extension tool in Pycharm
Running pylint in Pycharm
In order to implement a single file inspection, changed the original lines of code, added an input parameter passed in the file name, File_path = sys.argv[2], modified a row
Command = [Pylint, File_path, '-f ', ' parseable ']
The extension tool of Pylint in Pycharm is implemented, and a file check is carried out. As long as you select the file right click on the custom Externaltool, you can see your results in the console, easy to modify and debug in Pycharm.
3. Here are some introductions to Pymint and Pycharm
How to use Pylint to standardize Python code stylesPython code Debugging Tips
Add extension tools in Pycharm Pylint