GSI Object Oriented Online Offline (Go4)
GO4-6.4.0
Loading...
Searching...
No Matches
python
go4py
go4py.py
Go to the documentation of this file.
1
2
has_go4 =
True
3
4
try
:
5
go4
6
except
NameError:
7
print(
'running without go4?'
)
8
has_go4 =
False
9
10
11
def
MatchingObjects
(expr="*", folder="*"):
12
"""
13
Pythonic version of NextMatchingObject
14
Iterate over objects matching expr starting from folder
15
For "*" and "/" as folder, the root folder will be used
16
"""
17
if
not
has_go4:
18
return
19
if
folder
in
[
"*"
,
"/"
]:
20
folder =
None
21
reset =
True
22
while
True
:
23
obj = go4.NextMatchingObject(expr, folder, reset)
24
reset =
False
25
if
obj
is
None
:
26
break
27
yield
obj
28
29
30
go4py.go4py.MatchingObjects
MatchingObjects(expr="*", folder="*")
Definition
go4py.py:11
Generated by
1.13.2