master
ademant 2019-07-27 07:48:13 +02:00
parent 75971d997b
commit eb08b7c141
10 changed files with 35 additions and 24 deletions

View File

@ -5,7 +5,10 @@ import os, serial,time,socket,sys,json,logging,requests
from meas_data import meas_data
# import the server implementation
configfile="config.json"
pathname = os.path.dirname(sys.argv[0])
abspath=os.path.abspath(pathname)
configfile=abspath+"/config.json"
cf=open(configfile,"r")
log_conf=json.load(cf)
cf.close()

View File

@ -4,7 +4,10 @@ import numpy as np
import os, serial,time,socket,sys,json,logging,requests
from meas_data import meas_data
configfile="config.json"
pathname = os.path.dirname(sys.argv[0])
abspath=os.path.abspath(pathname)
configfile=abspath+"/config.json"
cf=open(configfile,"r")
log_conf=json.load(cf)
cf.close()

View File

@ -5,10 +5,11 @@ import os, serial,time,socket,sys,json
from meas_data import meas_data
# import the server implementation
# import ADC
#import vedirect
#import upload_osm
configfile="config.json"
pathname = os.path.dirname(sys.argv[0])
abspath=os.path.abspath(pathname)
configfile=abspath+"/config.json"
cf=open(configfile,"r")
log_conf=json.load(cf)
cf.close()

View File

@ -5,10 +5,10 @@ import os, serial,time,socket,sys,json,logging
from meas_data import meas_data
# import the server implementation
# import ADC
#import vedirect
#import upload_osm
pathname = os.path.dirname(sys.argv[0])
abspath=os.path.abspath(pathname)
configfile="config.json"
configfile=abspath+"/config.json"
cf=open(configfile,"r")
log_conf=json.load(cf)
cf.close()

View File

@ -28,7 +28,10 @@ import serial, struct, sys, time
import socket,json,requests
from meas_data import meas_data
configfile="config.json"
pathname = os.path.dirname(sys.argv[0])
abspath=os.path.abspath(pathname)
configfile=abspath+"/config.json"
cf=open(configfile,"r")
log_conf=json.load(cf)
cf.close()

View File

@ -4,11 +4,10 @@ import numpy as np
import os, serial,time,socket,sys,json,logging,requests,getopt
from meas_data import meas_data
# import the server implementation
# import ADC
#import vedirect
#import upload_osm
pathname = os.path.dirname(sys.argv[0])
abspath=os.path.abspath(pathname)
configfile="config.json"
configfile=abspath+"/config.json"
cf=open(configfile,"r")
log_conf=json.load(cf)
cf.close()

View File

@ -4,11 +4,10 @@ import numpy as np
import os, serial,time,socket,sys,json,logging
from meas_data import meas_data
# import the server implementation
# import ADC
#import vedirect
#import upload_osm
pathname = os.path.dirname(sys.argv[0])
abspath=os.path.abspath(pathname)
configfile="config.json"
configfile=abspath+"/config.json"
cf=open(configfile,"r")
log_conf=json.load(cf)
cf.close()

View File

@ -5,10 +5,10 @@ import os, serial,time,socket,sys,json,logging,requests,getopt
from meas_data import meas_data
# import the server implementation
# import ADC
#import vedirect
#import upload_osm
pathname = os.path.dirname(sys.argv[0])
abspath=os.path.abspath(pathname)
configfile="config.json"
configfile=abspath+"/config.json"
cf=open(configfile,"r")
log_conf=json.load(cf)
cf.close()

View File

@ -5,10 +5,10 @@ import os, serial,time,socket,sys,json
from meas_data import meas_data
# import the server implementation
# import ADC
#import vedirect
#import upload_osm
pathname = os.path.dirname(sys.argv[0])
abspath=os.path.abspath(pathname)
configfile="config.json"
configfile=abspath+"/config.json"
cf=open(configfile,"r")
log_conf=json.load(cf)
cf.close()

View File

@ -6,7 +6,10 @@ from meas_data import meas_data
from w1thermsensor import W1ThermSensor
# import the server implementation
configfile="config.json"
pathname = os.path.dirname(sys.argv[0])
abspath=os.path.abspath(pathname)
configfile=abspath+"/config.json"
cf=open(configfile,"r")
log_conf=json.load(cf)
cf.close()