[chronojump] weird fix on pyserial windows
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] weird fix on pyserial windows
- Date: Thu, 20 Jun 2013 22:15:33 +0000 (UTC)
commit e1344eaa9b101f6e8615b704c24cda2c7ad41500
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Jun 21 00:14:10 2013 +0200
weird fix on pyserial windows
encoder/pyserial_pyper_windows.py | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/encoder/pyserial_pyper_windows.py b/encoder/pyserial_pyper_windows.py
index 2315a53..75b06fb 100644
--- a/encoder/pyserial_pyper_windows.py
+++ b/encoder/pyserial_pyper_windows.py
@@ -36,8 +36,18 @@ import pygame._view
#import pygame.font
from pygame.locals import * #mouse and key definitions
+#sys.stdout=open("C:\Users\windblows\Desktop\pyserial-out.txt", 'w')
+#sys.stderr=open("C:\Users\windblows\Desktop\pyserial-error.txt", 'w')
print(sys.argv)
+#file2 = open("C:\Users\windblows\Desktop\pyserial-log.txt", 'w')
+#file2.write("printing path:\n")
+#file2.write(sys.path[0])
+#file2.write("printing sysargv, 24:\n")
+#file2.write(sys.argv[1])
+#file2.write(sys.argv[24])
+#file2.flush()
+#file2.close()
FALSE = 0
TRUE = 1
@@ -252,10 +262,10 @@ def calculate_all_in_r(temp, top_values, bottom_values, direction_now,
myR.run('accel$y <- accel$y[1:end]')
- print("new curve")
- print(start+x_ini)
- myspeedy=myR.get('speed$y')
- print(myspeedy)
+ #print("new curve")
+ #print(start+x_ini)
+ #myspeedy=myR.get('speed$y')
+ #print(myspeedy)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]