Skip to content

Commit 737a4f0

Browse files
maxcapodi78maxcapodi78
maxcapodi78
authored and
maxcapodi78
committed
Fix com
1 parent 56780d7 commit 737a4f0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pyaedt/desktop.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -925,9 +925,9 @@ def _initialize(
925925
StandalonePyScriptWrapper = AnsoftCOMUtil.Ansoft.CoreCOMScripting.COM.StandalonePyScriptWrapper
926926
if non_graphical or new_session:
927927
self.launched_by_pyaedt = True
928-
oapp = StandalonePyScriptWrapper.CreateObjectNew(non_graphical)
928+
return StandalonePyScriptWrapper.CreateObjectNew(non_graphical)
929929
else:
930-
oapp = StandalonePyScriptWrapper.CreateObject(version)
930+
return StandalonePyScriptWrapper.CreateObject(version)
931931
else:
932932
base_path = settings.aedt_install_dir
933933
sys.path.insert(0, base_path)

pyaedt/generic/configurations.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import pkgutil
77
import tempfile
88

9+
import pyaedt
910
from pyaedt import Icepak
1011
from pyaedt import __version__
1112
from pyaedt import generate_unique_folder_name
@@ -692,7 +693,9 @@ def __init__(self, app):
692693
self.results = ImportResults()
693694

694695
# Read the default configuration schema from pyaedt
695-
schema_bytes = pkgutil.get_data(__name__, "../misc/config.schema.json")
696+
schema_bytes = pkgutil.get_data(
697+
__name__, os.path.join(os.path.dirname(pyaedt.__file__), "misc", "config.schema.json")
698+
)
696699
schema_string = schema_bytes.decode("utf-8")
697700
self._schema = json.loads(schema_string)
698701

0 commit comments

Comments
 (0)