mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Attempt to appease mypy
This commit is contained in:
parent
3bb3b69082
commit
ddd7d15287
1 changed files with 5 additions and 4 deletions
|
@ -348,10 +348,11 @@ class PostProcessingPlugin(QObject, Extension):
|
||||||
# No signature needed
|
# No signature needed
|
||||||
return True
|
return True
|
||||||
|
|
||||||
dir_path = os.path.split(file_path)[0]
|
dir_path = os.path.split(file_path)[0] # type: str
|
||||||
if dir_path == os.path.join(
|
plugin_path = PluginRegistry.getInstance().getPluginPath("PostProcessingPlugin")
|
||||||
PluginRegistry.getInstance().getPluginPath("PostProcessingPlugin"),
|
assert plugin_path is not None # appease mypy
|
||||||
"scripts"):
|
bundled_path = os.path.join(plugin_path, "scripts")
|
||||||
|
if dir_path == bundled_path:
|
||||||
# Bundled scripts are trusted.
|
# Bundled scripts are trusted.
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue