code: def add_active_module(module):
      '''Add a module to CPENV_ACTIVE_MODULES environment variable'''
  
      modules = set(get_active_modules())
      modules.add(module)
      new_modules_path = os.pathsep.join([m.path for m in modules])
      os.environ['CPENV_ACTIVE_MODULES'] = str(new_modules_pathf add_active_module(module):
      '''Add a module to CPENV_ACTIVE_MODULES environment variable'''
  
      modules = set(get_active_modules())
      modules.add(module)
      new_modules_path = os.pathsep.join([m.path for m in modules])
      os.environ['CPENV_ACTIVE_MODULES'] = str(new_modules_path)
docs: Add a module to CPENV_ACTIVE_MODULES environment variable