# MWorks doesn't see some environmental variables

**URL:** https://mworks.discourse.group/t/mworks-doesnt-see-some-environmental-variables/1059
**Category:** Support
**Created:** [November 11, 2024, 5:03pm UTC](https://mworks.discourse.group/t/mworks-doesnt-see-some-environmental-variables/1059 "2024-11-11T17:03:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vonaviv](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@vonaviv](https://mworks.discourse.group/u/vonaviv)
#### Post date: [November 11, 2024, 5:03pm UTC](https://mworks.discourse.group/t/mworks-doesnt-see-some-environmental-variables/1059/1 "2024-11-11T17:03:06Z")

</div>

Hi Chris,

I am trying to run some software for camera acquisition via python. I use Mworks 12.2. I have added the path to my custom python packages and I can successfully load all of them. However, I have problem while using a specific package. The Mworks process doesn’t seem know the location of a driver, which is specified in a variable `SPINNAKER_GENTL64_CTI`. When I check from within Mworks python shell the variable is empty, however, in the regular shell it is present and I can use this python package without any problem.

As a proof of principle that the set-up can work I have another Mac which doesn’t have this problem. But this Mac runs on an Itel-chip and I had to use an older version of the required python package, which supports the chip. Therefore, I also had to use Mworks 10, because the package version requires python=3.8.

I tried few things, but nothing helps. I hope you could help me to solve the problem.

Best,  
Vladyslav

---

<div class="post-metadata">

### Author: ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)
#### Post date: [November 12, 2024, 3:14pm UTC](https://mworks.discourse.group/t/mworks-doesnt-see-some-environmental-variables/1059/2 "2024-11-12T15:14:26Z")

</div>

Hi Vladyslav,

Have you tried setting the environment variable in your Python code, before you import the package that needs it? For example:

```auto
os.environ['SPINNAKER_GENTL64_CTI'] = 'whatever'
import the_package

```

Cheers,  
Chris

---

<div class="post-metadata">

### Author: ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)
#### Post date: [November 19, 2024, 1:52pm UTC](https://mworks.discourse.group/t/mworks-doesnt-see-some-environmental-variables/1059/3 "2024-11-19T13:52:35Z")

</div>


