mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
formatting changes
This commit is contained in:
parent
2ccf657c2a
commit
23817bdc4c
2 changed files with 4 additions and 2 deletions
|
|
@ -409,7 +409,10 @@ class ProjectPushRepreItem:
|
|||
filepath_template = file_info["path"].replace("\\", "/")
|
||||
filepath = filepath_template.format(root=self._roots)
|
||||
dirpath, basename = os.path.split(filepath_template)
|
||||
if dirpath != src_dirpath or not src_basename_regex.match(basename):
|
||||
if (
|
||||
dirpath != src_dirpath
|
||||
or not src_basename_regex.match(basename)
|
||||
):
|
||||
relative_dir = dirpath.replace(src_dirpath, "")
|
||||
if relative_dir:
|
||||
relative_path = "/".join([relative_dir, basename])
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import re
|
||||
import collections
|
||||
|
||||
from qtpy import QtWidgets, QtGui, QtCore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue