UniqueUserProfile#

class ansys.mechanical.core.embedding.appdata.UniqueUserProfile(profile_name: str, dry_run: bool = False)#

Create Unique User Profile (for AppData).

Overview#

initialize

Initialize the new profile location.

cleanup

Cleanup unique user profile.

update_environment

Set environment variables for new user profile.

exists

Check if unique profile name already exists.

mkdirs

Create a unique user profile & set up the directory tree.

copy_profiles

Copy current user directories into a new user profile.

location

Return the profile name.

Import detail#

from ansys.mechanical.core.embedding.appdata import UniqueUserProfile

Property detail#

property UniqueUserProfile.location: str#

Return the profile name.

Method detail#

UniqueUserProfile.initialize(copy_profiles=True) None#

Initialize the new profile location.

Args:

copy_profiles (bool): If False, the copy_profiles method will be skipped.

UniqueUserProfile.cleanup() None#

Cleanup unique user profile.

UniqueUserProfile.update_environment(env) None#

Set environment variables for new user profile.

UniqueUserProfile.exists() bool#

Check if unique profile name already exists.

UniqueUserProfile.mkdirs() None#

Create a unique user profile & set up the directory tree.

UniqueUserProfile.copy_profiles() None#

Copy current user directories into a new user profile.