winIDEA SDK
Loading...
Searching...
No Matches
test_get_path.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
#
# (c) TASKING Germany GmbH, 2023
import isystem.connect as ic
winidea_id = ''
def test_getPath():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().start_if_required().instanceId(winidea_id))
ideCtrl = ic.CIDEController(connMgr)
path = ideCtrl.getPath(ic.CIDEController.WINIDEA_EXE_DIR)
print(f"winIDEA.exe path: {path}")
path = ideCtrl.getPath(ic.CIDEController.WORKSPACE_DIR)
print(f"Current workspace folder path: {path}")
path = ideCtrl.getPath(ic.CIDEController.WORKSPACE_FILE_NAME)
print(f"Current workspace file name: {path}")
if __name__ == "__main__":
test_getPath()