Stale Python Imports.

Stale Python Imports.

mpieper
Contributor Contributor
330 Views
1 Reply
Message 1 of 2

Stale Python Imports.

mpieper
Contributor
Contributor

I'm trying to develop general toolsets that I can use in between script files.

I've found that if I make a change in one of these scripts, the changes do not take hold unless I do a complete restart of fusion360 or manually reload the module from a script.

 

e.g.

from importlib import reload

reload(module)

 

Is there any way to force this without explicitly calling it e.g. is there any way to reboot the api backend from fusion360?  I'm guessing it would be a text-command or command-prompt input.

331 Views
1 Reply
Reply (1)
Message 2 of 2

BrianEkins
Mentor
Mentor

There is a single instance of Python that is running and all scripts and add-ins are running within that instance. There isn't a way to re-start it without stopping and restarting Fusion.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes