Browse Source

Updated test script

nixWorker 5 hours ago
parent
commit
793bc4375e
1 changed files with 25 additions and 0 deletions
  1. 25 0
      pythonScripts/test.py

+ 25 - 0
pythonScripts/test.py

@@ -7,6 +7,31 @@ def main(parameterFile):
     fsetup=os.path.join(fhome,'.labkey','setup.json')
     with open(fsetup) as f:
         setup=json.load(f)
+    print('SETUP')
+    print(setup)
+
+    sys.path.append(setup['paths']['nixWrapper'])
+    import nixWrapper
+    nixWrapper.loadLibrary('labkeyInterface')
+
+    import labkeyInterface
+    import labkeyDatabaseBrowser
+
+    print('Loaded labkeyInterface')
+
+    with open(parameterFile) as f:
+        pars=json.load(f)
+
+    print('Parameters')
+    print(pars)
+
+    return 0
+
+def testLJUData(parameterFile):
+    fhome=os.path.expanduser('~')
+    fsetup=os.path.join(fhome,'.labkey','setup.json')
+    with open(fsetup) as f:
+        setup=json.load(f)
 
     sys.path.append(setup['paths']['labkeyInterface'])
     import labkeyInterface