vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.54k stars 529 forks source link

Automatic upgrades using pip runpy #1130

Open Harvie opened 5 years ago

Harvie commented 5 years ago

This is how you can install stuff from within python. I guess we can use this to automatically install required modules, check for upgrades and upgrade bCNC:

import sys
import runpy
sys.argv = [None, "install", "bCNC"]
runpy.run_module('pip', run_name='__main__')
pda3k commented 5 years ago

Thanks Harvie - this would really help rookies like me.