1.2 Installation (Windows)

Please follow the instructions below to install AsPyLib on Windows systems:

Step1 : download

Unzip the archive and copy all files where you want in the computer (for example, MyDocuments or Desktop).

  • the subfolders starting with numbers (aspylib_v2.0.0\01_simple_scripts, etc) contain scripts and can be moved, changed or deleted as you like.
  • the subfolder aspylib_v2.0.0\aspylib contains the AsPyLib library and must not be moved or modified after installation.
_images/install_aspylib.png

Step2 : tell Windows where are the .dll files

Add the full path of the subfolder that contains the .dll files to the PATH environment variable. If AsPyLib is directly copied to C:\ the path is:

C:\aspylib_v2.0.0\aspylib\lib

To modify the PATH environment variable, go to Control Panel, choose: System -> Advanced settings -> Environment variables.

Step3 : tell Python where is the AsPyLib library

There are two possibilities to do it:

1. add the full path of the aspylib_v2.0.0 folder to the PYTHONPATH environment variable. If AsPyLib is directly copied to C:\ the path is:

C:\aspylib_v2.0.0

If the PYTHONPATH variable does not exist, create it.

or, equivalently:

2. modify file aspylib.pth so that it contains full path to aspylib_v2.0.0 (for instance C:\aspylib_v2.0.0) and put it in your python site-packages directory. Most likely the path will be C:\Python27\Lib\site-packages.

Step4 : conclusion

Log off and log on again so that Windows is aware of all changes in the environment variables.

AsPyLib is now installed on your system, congratulations !!