These are chat archives for cherrypy/cherrypy

9th
Dec 2016
Tiago Rodrigues
@TiagoMRodrigues
Dec 09 2016 12:40
@webknjaz hello I know my problem is really niche but if someone can help me is here I am using cherrypy with spacy (natural language processing tool) and it takes a lot of time to load it's modules so when I am programming it bothers me a bit to always have to reload. So my solution was to have another exec and load there and send the NLP tool by arg to the cherrypy and this tool would be in while true running new instances of cherrypy and it is protected with try catch anything, even sintax errors. so when I have to reload I don't wanna run what I executted in command line again, it will reload the module that reload stuff, in other hand I need that it kill himself when changes are detected so I can press enter in mine reload module and it gives me another cherrypi instance with spacy in it. I Know it's niche
Tiago Rodrigues
@TiagoMRodrigues
Dec 09 2016 23:19
solved with alot of code that i hope no one will ever see. I just wrote the most uggly code to solve this problem above
Nicklas Börjesson
@nicklasb
Dec 09 2016 23:21
@TiagoMRodrigues I think we all love a bit of really ugly code, have a link?
Tiago Rodrigues
@TiagoMRodrigues
Dec 09 2016 23:21
give me one minute.
Tiago Rodrigues
@TiagoMRodrigues
Dec 09 2016 23:36
well it start in the run this
Tiago Rodrigues
@TiagoMRodrigues
Dec 09 2016 23:51
@nicklasb if you have any doubt why I did that way instead the obvious one tag me and I try to explain. And I bet someone in here will say that I could add a flag and it would work.