Skip to content

Setting environment variable #3741

Closed Answered by MaxJPRey
Abhi-SimuTech asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Abhi-SimuTech,
You would just have to do it as you do in Python for any other application

import os
os.environ["ANS_USE_ISOLATED_CLIPBOARD"] = "1"

Note: Please be cautious in doing so and keep in mind that it can change the behavior of following simulations.

The global environment variable outside of the PyAEDT application will not affected. If you want to persist an environment variable across different processes or system-wide, you need to set it in the operating system settings or in a script that is executed when the system starts or when a new shell is started.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Samuelopez-ansys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants