PythonOceanDirect  1.31.0
OceanDirect 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 
12 user=getpass.getuser()
13 user_home=os.path.expanduser("~"+user)
14 program_data = os.path.normpath("./oceandirect")
15 os_platform = platform.system()
16 
17 
18 if os_platform == 'Darwin':
19  #For OSX, make sure that OCEANDIRECT_HOME points to the ./lib folder.
20  oceandirect_libname=("liboceandirect.dylib")
21 elif os.name == 'nt':
22  #For windows, make sure that OCEANDIRECT_HOME points to the ./lib folder.
23  oceandirect_libname=("OceanDirect.dll")
24 else:
25  #For linux, make sure that LD_LIBRARY_PATH and OCEANDIRECT_HOME points to the ./lib folder.
26  oceandirect_libname=("liboceandirect.so")
27 
28 
29 oceandirect_dll = os.path.normpath(program_data+"/lib/"+oceandirect_libname)
30 
31 #print("oceandirect_dll: ", oceandirect_dll)