Skip to content

Commit 72fcc81

Browse files
authored
Fixed Bug on variable setter in case project name and design name were the same (#801)
1 parent 31b4bb5 commit 72fcc81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyaedt/application/Variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def set_variable(
758758
desktop_object = self.aedt_object(variable_name)
759759
test = desktop_object.GetName()
760760
proj_name = self._oproject.GetName()
761-
var_type = "Project" if test == proj_name else "Local"
761+
var_type = "Project" if "$" in variable_name[0] else "Local"
762762

763763
prop_type = "VariableProp"
764764

0 commit comments

Comments
 (0)