Commit 9b4d2523 authored by Xavier de Blas's avatar Xavier de Blas

pyserial_pyper_windows.py with py2exe

parent e3b0b74d
from MinGW shell:
python setup-pyserial_pyper_windows.py install
python setup-pyserial_pyper_windows.py py2exe
from any terminal:
cd c:\MinGW\msys\1.0\home\windblows\chronojump\encoder\dist
pyserial_pyper_windows.exe graphtitle output.txt 10 30 FALSE 70 0.7 c -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 meanPower COM4
need to copy the wavs into dist directory
......@@ -35,7 +35,7 @@ import pygame
#from pygame.locals import * #mouse and key definitions
#print(sys.argv)
print(sys.argv)
FALSE = 0
TRUE = 1
......@@ -448,7 +448,7 @@ if __name__ == '__main__':
ColorBackground = (30,30,30)
ColorBad = (255,0,0)
ColorGood = (0,255,0)
#start capture
file = open(outputFile, 'w')
ser = serial.Serial(w_serial_port)
......@@ -463,7 +463,7 @@ if __name__ == '__main__':
for i in xrange(delete_initial_time):
#if ser.readable(): #commented because don't work on linux
ser.read()
#print title
title = title.replace('_',' ')
title = title.replace('-',' ')
......
This diff is collapsed.
from distutils.core import setup
import py2exe
setup(console=['pyserial_pyper_windows.py'])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment