Python script discovery in Krita

Derik Gokstorp Derik.Gokstorp at animallogic.ca
Wed Nov 1 01:40:11 UTC 2017


You would have to reload the script I would imagine as it is probably byte compiling the .py file to a .pyc file
________________________________________
From: kimageshop <kimageshop-bounces at kde.org> on behalf of Brendan Scott <disposableemail at apps.opensourcelaw.biz>
Sent: October 31, 2017 3:48 PM
To: kimageshop at kde.org
Subject: Re: Python script discovery in Krita

On 10/31/2017 04:13 AM, Eliakin Costa wrote:
> Hi Brendan
>
> I've been really busy these days, sorry for not give you enough attention :(
>
>>> I'd also like to be able to make Krita reload the Python scripts so I
> don't need to keep restarting on change of script. Is that possible?
>
> You can write plugins for menu (as you told in your tutorial), dockers and
> pointing action to shortcuts whithout any menu (like ten brushes). In this
> cases, you need to rebuild or paste files in resources folder (as Wolthera
> told). Fortunately, you can write your scripts in the Scripter or load from
> your files and execute it on the fly(without restart Krita).

I'm not sure that's true, or we're talking about different things.

If I install the script at https://kritascripting.wordpress.com/ and then:
* run Krita
* run the script from Krita
* edit the script print("hello_world") -> print("hello_world2") and save it
* run the script again from Krita

The printout is not changed.
I have also tried deleting __pycache__ but it doesn't seem to make any difference.

Thanks


Brendan

--
Derik Gokstorp
Digital Artist, FX TD

T: +1 604 398 4800 (main)
D: +1 604 398 3892 (direct)
E: Derik.Gokstorp at animallogic.ca

840 Cambie Street
Vancouver, BC V6B 2P6
CANADA


  [LinkedIn] <https://www.linkedin.com/company/animal-logic>   [Facebook] <https://www.facebook.com/Animal-Logic-129284263808191/>   [Twitter] <https://twitter.com/AnimalLogic>   [Instagram] <https://www.instagram.com/animallogicstudios/>

[Animal Logic]<http://www.animallogic.com>

www.animallogic.com<http://www.animallogic.com>

CONFIDENTIALITY AND PRIVILEGE NOTICE
This email is intended only to be read or used by the addressee. It is confidential and may contain privileged information. If you are not the intended recipient, any use, distribution, disclosure or copying of this email is strictly prohibited. Confidentiality and legal privilege attached to this communication are not waived or lost by reason of the mistaken delivery to you. If you have received this email in error, please delete it and notify us immediately by telephone or email.


More information about the kimageshop mailing list