Right now, when launched from a virtualenv, GNAT Studio
cannot function - it cannot find gi and other Python libs.
This is because Python attempts to finds packages relative to
the "python" executable by default. Instead, make it find
the location of Python libraries relative to "gnatstudio".
Fixes#163.
Each FileLocation was leaking a File: they were keeping a pointer
to File without using any proxy to release them.
Break the dependency and only create the File from the FileLocation
when needed.
Add a test.
Change-Id: I1df713a7c0e6cc54f7c4912b803247b3189dcd92
... and expect this to be a full Python installation, meaning
there is no longer the need for the hack on "Program_Name".
Depends-On: Ie1db8e10bc57c4fd0cccde5b5da30cac45209ade
Change-Id: Iaf89c8b7c51bad0c2d57199b144a13a346bb9cce
This is needed for the GS spawn via ancr because gtk dll needed by
python4gnatstudio are not located in the same directory.
Change-Id: I04725fd35562cc8ec64a2a25cf1d6e686c93de35
- Fix "is not" warnings
- ReadPlist has been removed
- Fix crash related to wrong __repr__ definition
- Add defensive GIL lock in the hooks
- Following the parso/jedi bumped, update the python completion
to use the new API.
(no-precommit-check)
Change-Id: I2e027361b17d0f0101763901ba3064b204a56799
... unless we're in development mode and using "GPS_PYTHONHOME".
Add a block of explanatory comment.
Change-Id: I7ed3856f20bb795a3e812454af2913dadae5ca16
Python source files should be encoded in utf-8 by default, but on Windows
our Python interpreter uses cp1252 instead. Adjust this by overriding the
function that returns the encoding.
Change-Id: Ie52f0e933d299ba858fc7a1c5137b15a9a543375
Monitor the new environment variable GNATSTUDIO_PYTHON_COV.
This variable must be set to the name of the directory being
tested.
Add --pycov switch in the testsuite CLI.
Create a pycov_data repository containing:
- preferences in the form of .coveragerc
- pycov_startup.xml: when put in $GNATSTUDIO_HOME\startup.xml
enabled all the plugins.
- all the generated file in the form of .coverage.${test_name}
When all the file are generated, run:
$ coverage combine # ignore this if there is only one .coverage*
$ coverage report
$ coverage html # optional
Change-Id: I4b45243924d939ede5b885ff86541a6d70571b0c