mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-30 06:48:47 +02:00
Remove all references to pyCompatibility
- "pyCompatibility.basestring" are replaced by standard Python3 "str" - "Sequence" and "Iterable" from "collections" are now directly imported with "collections.abc"
This commit is contained in:
parent
d2c707f6fa
commit
635f85e7fd
10 changed files with 30 additions and 56 deletions
|
@ -17,7 +17,7 @@ from enum import Enum
|
|||
|
||||
import meshroom
|
||||
from meshroom.common import Signal, Variant, Property, BaseObject, Slot, ListModel, DictModel
|
||||
from meshroom.core import desc, stats, hashValue, pyCompatibility, nodeVersion, Version
|
||||
from meshroom.core import desc, stats, hashValue, nodeVersion, Version
|
||||
from meshroom.core.attribute import attributeFactory, ListAttribute, GroupAttribute, Attribute
|
||||
from meshroom.core.exception import NodeUpgradeError, UnknownNodeTypeError
|
||||
|
||||
|
@ -1264,7 +1264,7 @@ class CompatibilityNode(BaseNode):
|
|||
return desc.IntParam(range=None, **params)
|
||||
elif isinstance(value, float):
|
||||
return desc.FloatParam(range=None, **params)
|
||||
elif isinstance(value, pyCompatibility.basestring):
|
||||
elif isinstance(value, str):
|
||||
if isOutput or os.path.isabs(value) or Attribute.isLinkExpression(value):
|
||||
return desc.File(**params)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue