Skip to content

Commit

Permalink
Cpp folder for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
PauloRadatz committed Oct 10, 2024
1 parent 2d2b942 commit c0d1698
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 159 deletions.
6 changes: 5 additions & 1 deletion src/py_dss_interface/DSS.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def __init__(self, dll_folder_param=None, dll_by_user=None, print_dss_info=False
"opendss_official", "linux", "cpp")
dll_folder_param = pathlib.Path(dll_folder_param)
dll_by_user = DLL_NAME_LINUX

self._dll_path = dll_folder_param
elif System.detect_platform() == 'Windows':
if not dll_folder_param:
valid_versions = ["cpp", "delphi"]
Expand All @@ -68,7 +70,9 @@ def __init__(self, dll_folder_param=None, dll_by_user=None, print_dss_info=False
if windows_version == "cpp":
dll_by_user = DLL_NAME_WIN_CPP

self._dll_path = System.get_architecture_path(dll_folder_param)
self._dll_path = System.get_architecture_path(dll_folder_param)


self.dll_file_path = os.path.join(self._dll_path, dll_by_user)
self._dss_obj = ctypes.cdll.LoadLibrary(self.dll_file_path)

Expand Down

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit c0d1698

Please sign in to comment.