#6322 Fix Python 3.8 problems

* Change base PdmObject class name to PdmObjectBase to avoid name conflicts
* Make all import paths relative
This commit is contained in:
Gaute Lindkvist
2020-08-19 07:30:51 +02:00
committed by Kristian Bendiksen
parent b741359696
commit 454e7f17a0
15 changed files with 390 additions and 443 deletions

View File

@@ -1,11 +1,10 @@
"""
ResInsight 2d plot module
"""
import rips.generated.Commands_pb2 as Cmd
import Commands_pb2
from rips.pdmobject import PdmObject
from rips.generated.pdm_objects import PlotWindow, Plot
from rips.pdmobject import add_method
from .pdmobject import PdmObjectBase, add_method
from pdm_objects import PlotWindow, Plot
@add_method(PlotWindow)
@@ -19,7 +18,7 @@ def export_snapshot(self, export_folder='', file_prefix='', output_format='PNG')
"""
return self._execute_command(
exportSnapshots=Cmd.ExportSnapshotsRequest(type='PLOTS',
exportSnapshots=Commands_pb2.ExportSnapshotsRequest(type='PLOTS',
prefix=file_prefix,
viewId=self.id,
exportFolder=export_folder,