Skip to content

Commit 769664f

Browse files
authored
[cueadmin] Fix compiled_proto import on output.py (AcademySoftwareFoundation#1772)
This module doesn't need to depend on the proto module, specially as it simply used job_pb2 to infer the string out of an enum value. This import was breaking our internal packaging setup and I believe this change won't impact the pyproject setup as it is. --------- Signed-off-by: Diego Tavares <dtavares@imageworks.com>
1 parent 0674f8d commit 769664f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cueadmin/cueadmin/output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import time
2525

2626
import opencue
27-
import opencue_proto.job_pb2
27+
from opencue.api import job_pb2
2828

2929
# pylint: disable=cyclic-import
3030
import cueadmin.common
@@ -230,7 +230,7 @@ def displayFrames(frames):
230230

231231
print(framesFormat % (
232232
cueadmin.format.cutoff(frame.data.name, 35),
233-
opencue_proto.job_pb2.FrameState.Name(frame.data.state),
233+
job_pb2.FrameState.Name(frame.data.state),
234234
frame.data.last_resource,
235235
startTime,
236236
stopTime,

0 commit comments

Comments
 (0)