OceanDirectLighthouse  3.1.1
OceanDirect Lighthouse Python API
sdk_properties.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 """
3 Created on Wed Jan 9 16:25:46 2019
4 
5 @author: Ocean Insight Inc.
6 """
7 
8 import os
9 import getpass
10 import platform
11 import os.path
12 
13 user=getpass.getuser()
14 user_home=os.path.expanduser("~"+user)
15 program_data = os.path.normpath("./oceandirect")
16 os_platform = platform.system()
17 
18 
19 if os_platform == 'Darwin':
20  #For OSX, make sure that OCEANDIRECT_HOME points to the ./lib folder.
21  oceandirect_libname=("liboceandirect.dylib")
22 elif os.name == 'nt':
23  #For windows, make sure that OCEANDIRECT_HOME points to the ./lib folder.
24  oceandirect_libname=("OceanDirect.dll")
25 else:
26  #For linux, make sure that LD_LIBRARY_PATH and OCEANDIRECT_HOME points to the ./lib folder.
27  oceandirect_libname=("liboceandirect.so")
28 
29 module_path=os.path.dirname(__file__)
30 oceandirect_dll = module_path + os.path.normpath("/lib/"+oceandirect_libname)
31 
32 #oceandirect_dll = os.path.normpath(program_data+"/lib/"+oceandirect_libname)
33 #print("oceandirect_dll: ", oceandirect_dll)