correct the image name.
@@ -5,6 +5,7 @@ import time
import sys, getopt
import Queue
import random
+import os
#============================ defines =========================================
BROKER_ADDRESS = "argus.paris.inria.fr"
@@ -27,6 +28,9 @@ class program_over_testbed(object):
self.image_name = ''
with open(image_path,'rb') as f:
self.image = base64.b64encode(f.read())
+ if os.name=='nt': # Windows
+ self.image_name = image_path.split('\\')[-1]
+ elif os.name=='posix': # Linux
self.image_name = image_path.split('/')[-1]
# initialize statistic result
