Closed DonRichie closed 3 years ago
You need to replace
from snakes.nets import *
snakes.plugins.load('gv', 'snakes.nets', 'nets')
with
snakes.plugins.load('gv', 'snakes.nets', 'xxxx')
from xxxx import *
in order to import from the package that was build by the plugins loader. (I've changer its name to xxxx
in order to make it explicit that the plugins loader builds package with the name one provides.)
@fpom: That was fast, thank you. It works as expected, although I didn't expect it works like this :).
Hello,
I am currently trying to draw a simple Petri Net using snakes, but I am missing the "draw" function in the PetriNet Class. Did the api change somehow or did I make a mistake? I think I loaded the plugin correctly.
To make my problem short:
Code:
Error: