Closed GoogleCodeExporter closed 9 years ago
What kind of "linux box" you are using?
Can you do a print platform.system() to see what the system is?
Original comment by lalelu...@gmail.com
on 18 Jan 2014 at 12:27
Rasperry Pi NOOBS Raspbian
>>> platform.system()
'Linux'
>>> platform.platform()
'Linux-3.10.25+-armv6l-with-debian-7.2'
Original comment by andrewtr...@live.co.uk
on 19 Jan 2014 at 12:13
I solved it with a regular search so that any system that use Linux in the name
will match
Thank you for your help.
r = re.search(r"Linux", platform.system())
if r:
usbport = '/dev/ttyUSB0'
config_file_name = "/usr/local/measureit/measureit.cfg.php"
hdlr = logging.FileHandler('/tmp/measureit.log')
#clear logfile
subprocess.call('echo "" > /tmp/measureit.log', shell=True
Original comment by lalelu...@gmail.com
on 2 Feb 2014 at 9:59
[deleted comment]
Solved in version 116 that is available to download
Original comment by lalelu...@gmail.com
on 19 Apr 2014 at 9:10
Original issue reported on code.google.com by
andrewtr...@live.co.uk
on 15 Jan 2014 at 8:48Attachments: