abspath
parent
75971d997b
commit
eb08b7c141
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue