diff options
author | Hrishi Hiraskar | 2016-10-29 16:29:34 +0530 |
---|---|---|
committer | Hrishi Hiraskar | 2016-10-29 16:29:34 +0530 |
commit | 45e0da62e955b2350da8f2ccc1923475c06e1e2f (patch) | |
tree | 388d9d499a6fbf4496e4e906c1f028557e20a289 | |
parent | ac53ecb15182face19e21ce5b55e9dfcb775f5db (diff) | |
download | xcos-on-web-45e0da62e955b2350da8f2ccc1923475c06e1e2f.tar.gz xcos-on-web-45e0da62e955b2350da8f2ccc1923475c06e1e2f.tar.bz2 xcos-on-web-45e0da62e955b2350da8f2ccc1923475c06e1e2f.zip |
Integrated SendLog python server
-rwxr-xr-x | src/main/SendLog.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main/SendLog.py b/src/main/SendLog.py index 315ef0c..9f0af39 100755 --- a/src/main/SendLog.py +++ b/src/main/SendLog.py @@ -139,12 +139,7 @@ def event_stream(xcos_file_id): # Log file name log_name = "scilab-log-"+pid+".txt" # Open the log file - log_file = open(log_dir + log_name, "a+") - # Seek the file pointer to the end of file - # 0 signifies the displacement index relative to given position and - # 2 signifies the position (here, end of file; 0 is for start of file and 1 is for current position) - # Refer https://www.tutorialspoint.com/python/file_seek.htm for more - log_file.seek(0,2) + log_file = open(log_dir + log_name, "w+") # Kill scilab-adv-cli, if running and get it's output # If the simulation is error free, no output is generated scilab_proc.kill() |