Skip to content

Commit

Permalink
fix for existing symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Hog committed Sep 30, 2024
1 parent 96c78af commit d4dfe17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meshroom/core/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ def installPlugin(pluginUrl):
if isLocal:
os.symlink(pluginParam.nodesFolder, intallFolder)
if os.path.isdir(pluginParam.pipelineFolder):
os.symlink(pluginParam.pipelineFolder, os.path.join(pluginsPipelinesFolder, pluginParam.pluginName))
pipelineFolderLink = os.path.join(pluginsPipelinesFolder, pluginParam.pluginName)
if os.path.exists(pipelineFolderLink):
logging.warn("Plugin already installed, will overwrite")
os.unlink(pipelineFolderLink)
os.symlink(pluginParam.pipelineFolder, pipelineFolderLink)
else:
copy_tree(pluginParam.nodesFolder, intallFolder)
if os.path.isdir(pluginParam.pipelineFolder):
Expand Down

0 comments on commit d4dfe17

Please sign in to comment.