mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
PEP fixes
This commit is contained in:
parent
70c52d0633
commit
3d0b7e49c7
4 changed files with 11 additions and 12 deletions
2
.flake8
2
.flake8
|
|
@ -1,6 +1,6 @@
|
|||
[flake8]
|
||||
# ignore = D203
|
||||
ignore = BLK100, W504
|
||||
ignore = BLK100, W504, W503
|
||||
max-line-length = 79
|
||||
exclude =
|
||||
.git,
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ class AppAction(BaseHandler):
|
|||
'success': False,
|
||||
'message': "Hook didn't finish successfully {0}"
|
||||
.format(self.label)
|
||||
}
|
||||
}
|
||||
|
||||
if sys.platform == "win32":
|
||||
|
||||
|
|
@ -290,7 +290,7 @@ class AppAction(BaseHandler):
|
|||
|
||||
# Run SW if was found executable
|
||||
if execfile is not None:
|
||||
popen = avalonlib.launch(
|
||||
avalonlib.launch(
|
||||
executable=execfile, args=[], environment=env
|
||||
)
|
||||
else:
|
||||
|
|
@ -298,8 +298,7 @@ class AppAction(BaseHandler):
|
|||
'success': False,
|
||||
'message': "We didn't found launcher for {0}"
|
||||
.format(self.label)
|
||||
}
|
||||
pass
|
||||
}
|
||||
|
||||
if sys.platform.startswith('linux'):
|
||||
execfile = os.path.join(path.strip('"'), self.executable)
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class StaticMeshFBXLoader(api.Loader):
|
|||
|
||||
tools = unreal.AssetToolsHelpers().get_asset_tools()
|
||||
temp_dir, temp_name = tools.create_unique_asset_name(
|
||||
"/Game/{}".format(name), "_TMP"
|
||||
"/Game/{}".format(name), "_TMP"
|
||||
)
|
||||
|
||||
unreal.EditorAssetLibrary.make_directory(temp_dir)
|
||||
|
|
@ -95,7 +95,7 @@ class StaticMeshFBXLoader(api.Loader):
|
|||
container["objectName"])
|
||||
# update metadata
|
||||
avalon_unreal.imprint(
|
||||
container_path, {"_id": str(representation["_id"])})
|
||||
container_path, {"_id": str(representation["_id"])})
|
||||
|
||||
def remove(self, container):
|
||||
unreal.EditorAssetLibrary.delete_directory(container["namespace"])
|
||||
|
|
|
|||
|
|
@ -214,11 +214,11 @@ def create_unreal_project(project_name: str,
|
|||
# sources at start
|
||||
|
||||
data["Modules"] = [{
|
||||
"Name": project_name,
|
||||
"Type": "Runtime",
|
||||
"LoadingPhase": "Default",
|
||||
"AdditionalDependencies": ["Engine"],
|
||||
}]
|
||||
"Name": project_name,
|
||||
"Type": "Runtime",
|
||||
"LoadingPhase": "Default",
|
||||
"AdditionalDependencies": ["Engine"],
|
||||
}]
|
||||
|
||||
if preset["install_unreal_python_engine"]:
|
||||
# now we need to fix python path in:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue