mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Hound
This commit is contained in:
parent
1bfa8c7dae
commit
852cea7714
1 changed files with 6 additions and 8 deletions
|
|
@ -258,7 +258,7 @@ class HostDirmap:
|
||||||
" destination directory."))
|
" destination directory."))
|
||||||
break
|
break
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
log.error("invalid path {} -> {}, mapping not registered".format( #noqa
|
log.error("invalid path {} -> {}, mapping not registered".format( # noqa: E501
|
||||||
sp, mapping["destination-path"][k]
|
sp, mapping["destination-path"][k]
|
||||||
))
|
))
|
||||||
continue
|
continue
|
||||||
|
|
@ -272,10 +272,8 @@ class HostDirmap:
|
||||||
|
|
||||||
mapping = local_mapping or \
|
mapping = local_mapping or \
|
||||||
self.project_settings[self.host_name][dirmap_label]["paths"] or {}
|
self.project_settings[self.host_name][dirmap_label]["paths"] or {}
|
||||||
mapping_enabled = self.project_settings[self.host_name]\
|
enbled = self.project_settings[self.host_name][dirmap_label]["enabled"]
|
||||||
[dirmap_label]\
|
mapping_enabled = enbled or bool(local_mapping)
|
||||||
["enabled"] \
|
|
||||||
or bool(local_mapping)
|
|
||||||
|
|
||||||
if not mapping or not mapping_enabled:
|
if not mapping or not mapping_enabled:
|
||||||
return []
|
return []
|
||||||
|
|
@ -330,9 +328,9 @@ class HostDirmap:
|
||||||
if os.path.isdir(value):
|
if os.path.isdir(value):
|
||||||
try:
|
try:
|
||||||
mapping["destination-path"] = [value]
|
mapping["destination-path"] = [value]
|
||||||
mapping["source-path"] = [sync_settings["sites"]\
|
mapping["source-path"] = [sync_settings["sites"]
|
||||||
[remote_site]\
|
[remote_site]
|
||||||
["root"]\
|
["root"]
|
||||||
[root_name]]
|
[root_name]]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
# missing corresponding destination path
|
# missing corresponding destination path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue