Skip to content

Commit

Permalink
do not restore empty (Nune) properties (not working)
Browse files Browse the repository at this point in the history
  • Loading branch information
romangrothausmann committed Mar 20, 2018
1 parent 2b23f93 commit d3af645
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pvsm-multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ def main():
print repr
d = {}
for props in repr.ListProperties():
d[props] = pvs.GetProperty(repr, props) # values of property
print props, d[props]
pvs.SetProperties(repr, **d) # test setting of properties collected so far
propv = pvs.GetProperty(repr, props) # values of property
if propv:
d[props] = propv
print props, d[props]
pvs.SetProperties(repr, **d) # test setting of properties collected so far
reppro[repr] = d


Expand Down

0 comments on commit d3af645

Please sign in to comment.