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