PEP fixes

This commit is contained in:
Ondrej Samohel 2020-03-25 13:52:40 +01:00
parent 70c52d0633
commit 3d0b7e49c7
No known key found for this signature in database
GPG key ID: 8A29C663C672C2B7
4 changed files with 11 additions and 12 deletions

View file

@ -1,6 +1,6 @@
[flake8]
# ignore = D203
ignore = BLK100, W504
ignore = BLK100, W504, W503
max-line-length = 79
exclude =
.git,

View file

@ -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)

View file

@ -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"])

View file

@ -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: