Change Code Env while duplicating the project

lucifer20
Level 1
Change Code Env while duplicating the project

Hello,

We'd like to duplicate projects and with the duplication we want to change the code env in project. I'm using a python code to automate this process. The duplication of the projects works as desired by using the project.duplicate() function, but the remapping of the code envs is not performed. 

  • remapping (dict) – dict of connections to be remapped for the new project (defaults to {}) 

is one of the parameters of the function. How can we remap the Code Envs using this parameter?

0 Kudos
1 Reply
importthepandas

The duplicate method doesn't support this AFAIK. But you could easily build into your project duplication routine the change of the project's default code envs through the Python API and project settings.

0 Kudos