View Single Post
Old 03-23-2018, 11:41 AM   #374
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,748
Karma: 24032915
Join Date: Dec 2010
Device: Kindle PW2
Can I release self-modifying plugins?

@DiapDealer & @KevinH:

Many of my plugins are simple wrappers for tools written by somebody else. Most of these tools are rarely updated, but some of them, e.g. fonttools, are updated almost every month.

I'm wondering if it'd OK, if I modified the font subsetting plugin to check for updates on Github and then directly update the embedded Python package in the plugin folder.
I.e., it'd download the updated package from the GitHub page of the fonttools developers and replace the package that I originally bundled the plugin with.

This would save me the hassle of releasing a new plugin version every month.

However, I vaguely remember having read somewhere that "self-modifying code" is generally frowned upon...
Doitsu is offline   Reply With Quote