Touchy + ngcgui

More
3 years 6 months ago #269601 by scalaire
Replied by scalaire on topic Touchy + ngcgui
Code:
by the latter
Code:
[code][code]=======================================      Linuxcnc SIM 2.7.14 ======================================= def get_linuxcnc_ini_file(): ps = subprocess.Popen('ps -C linuxcncsvr --no-header -o args'.split(), stdout=subprocess.PIPE ) p,e = ps.communicate() if ps.returncode: print(_('get_linuxcnc_ini_file: stdout= %s') % p) print(_('get_linuxcnc_ini_file: stderr= %s') % e) return None ans = p.split()[p.split().index('-ini')+1] return ans .............................................................
[/code]

[/code]
Code:
[code]If it helps anyone. @++ Jean-Claude  
[/code]

Please Log in or Create an account to join the conversation.

Time to create page: 0.125 seconds
Powered by Kunena Forum