Τρίτη, 24 Οκτωβρίου 2017

Installing python packages the easy way and checking your code with pylint

The external tools is a powerful feature of PyScripter that is relatively unknown.   Below I describe how you can use it to install python packages easily using pip.

Start PyScripter and select Tools, Configure tools..  In the dialog box select Add.  Fill the following info:

Name : pip
Description: Install python packages
Application: $[PythonExe-Short]
Parameters: $[PythonDir-Short]Lib\site-packages\pip install $[Package?Package Name]

Note:  You can provide the custom parameters in the Application and Parameters fields easily using the Shift-Ctrl-P and Shift-Ctrl-M shortcuts.  For example to get $[PythonExe-Short] press Shift-Ctrl-P, select PythonExe and then press Shift-Ctrl-M and select Short.   See the help file topics External Tools and Parameters for more information.  This is a picture of the result.



Press OK twice to save the tool.   Now it is ready to be used.

Important:  If you are using an "All users" python installation you will need administration rights to install python packages.   Exit PyScripter and run again as administrator (In the start menu right click on PyScirpter and select the "Run as Administrator" option.

Select Tools, Tools tools pip to run the external tool.  You will prompted for a package name.  Type lint and press OK.

You will see the output of the installation process in the Output window.  If the installation is successful pylint will have been installed.

Pylint is a powerful source code checker.  To use it  place the cursor on a python module and select Tools, Tools, pylint.   The issues the pylint finds will be placed in the Messages window as in the example below.  You can click on any message to jump to the corresponding position in the code.



The pip tool will be included in the next version of PyScripter.


Δευτέρα, 23 Οκτωβρίου 2017

PyScripter version 3.0.2 is out

This is a hotfix release.  32-bit Python versions starting with 3.5 changed the way they are registered in the Windows Registry and PyScripter would not automatically find them.  This should now be fixed.

Τρίτη, 17 Οκτωβρίου 2017

PyScripter 3.0.0 released

At long last a new Pyscripter release. You can download it from (Sourceforge).  Here are the new features:
  • Python 3.5, 3.6 and 3.7 support
  • New Style Engine (VCL Styles) with high quality choices
  • Visual Style Preview and selection (View, Select Style)
  • Visual Source highlighter theme selection (Editor Options, Select theme)
  • German Translation added 
See below a screenshot with the Windows 10 Dark style and the DarkHighlight highlighter theme.


Παρασκευή, 20 Μαρτίου 2015

PyScripter v2.6.0 released with support for Python 3.4

I do apologize for the my long absence from PyScripter development and support.  However I am back with a new release that supports Python 3.4.

Unfortunately, Google has made the the Project Hosting Downloads read-only and will eventually be terminating Project Hosting  services.  I have moved the project downloads to Sourceforge (https://sourceforge.net/projects/pyscripter/) where you can find PyScripter v.2.6.   Later I will be moving the source code and the issue tracker to GitHub.

Δευτέρα, 16 Απριλίου 2012

PyScripter help file not working for network installations

If you are running PyScripter from a network drive, then depending on the security settings of your machine, you may not be able to see the contents of the help file.  This is a general issue affecting all CHM files and not PyScripter specific.  This article from Microsoft explains the issue and provides a solution involving editing the registry to register the help file. 

Since editing the Windows registry is always tricky I recommend the following

  • Download hhreg.zip from EC-Software.
  • Expand and run hhreg.exe.
  • Add PyScripter.chm to the list of Network files and folders and you are done.

Παρασκευή, 23 Μαρτίου 2012

PyScripter v2.5.3 released

PyScripter version 2.5.3 was released at http://pyscripter.googlecode.com.  This is another bug-fix release.  It fixes two issues in version 2.5.

  • Unit test discovery was broken 
  • Find in files was broken in the x64 version.

See previous post for the new features and bug fixes in version 2.5