# ShotGrid Desktop - default to python3?

**URL:** <https://community.shotgridsoftware.com/t/shotgrid-desktop-default-to-python3/14255>\
**Category:** Pipeline Integrations\
**Created:** [December 13, 2021, 5:56pm UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-default-to-python3/14255 "2021-12-13T17:56:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Bradham](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/dan_bradham/32/2479_2.png) [@Dan\_Bradham](https://community.shotgridsoftware.com/u/Dan_Bradham)\
**Post date:** [December 13, 2021, 5:56pm UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-default-to-python3/14255/1 "2021-12-13T17:56:27Z")

</div>

It feels like ShotGrid Desktop should be defaulting to Python3 at this point. Is there a way to set that up other than setting the SHOTGUN\_PYTHON\_VERSION variable to 3? It’s a little tedious at the moment dealing with remote artists.

---

<div class="post-metadata">

**Author:** ![Dan\_Bradham](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/dan_bradham/32/2479_2.png) [@Dan\_Bradham](https://community.shotgridsoftware.com/u/Dan_Bradham)\
**Post date:** [March 8, 2022, 6:15pm UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-default-to-python3/14255/2 "2022-03-08T18:15:59Z")

</div>

_Bump_

I want to live in a Python 3 by default! This is an important thing for me as we have remote artists using their local machines sometimes. For non-technical Mac users, setting an environment variable is a big scary thing to do. There is no dialog to set environment variables like windows, so telling someone to manually create an edit their /etc/launchd.conf is a lot to ask. I would love it if there was a Python 3 default version of ShotGrid Desktop. OR an option to set Python version for specific software.

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [March 9, 2022, 10:15am UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-default-to-python3/14255/3 "2022-03-09T10:15:54Z")

</div>

Have you tried changing `<project_path>/config/core/interpreter_Darwin.cfg`? Sounds like it might work. You have to point it to Shotgun’s Python 3 (I think both versions are installed).

---

<div class="post-metadata">

**Author:** ![nedwilson](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/nedwilson/32/679_2.png) [@nedwilson](https://community.shotgridsoftware.com/u/nedwilson)\
**Post date:** [March 23, 2022, 9:10pm UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-default-to-python3/14255/4 "2022-03-23T21:10:20Z")

</div>

Out of curiosity, does setting environment variables in /etc/launchd.conf work in modern versions of macOS? I was under the impression that Apple disabled support for this from Yosemite on. The way I’ve done it is to add a .plist file to /Library/LaunchDaemons for GUI apps and do the same in /etc/profile for Terminal stuff. Granted, this solution is even less acceptable for a non-technical end user.

---

<div class="post-metadata">

**Author:** ![Dan\_Bradham](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/dan_bradham/32/2479_2.png) [@Dan\_Bradham](https://community.shotgridsoftware.com/u/Dan_Bradham)\
**Post date:** [March 23, 2022, 10:18pm UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-default-to-python3/14255/5 "2022-03-23T22:18:00Z")

</div>

Yeah I think /etc/launchd.conf is still the only way to set system-wide environment variables on Mac. It’s worked for me on both Catalina and Mojave. I believe you have to open permissions on the file if you want it to be truly system-wide though.

---

<div class="post-metadata">

**Author:** ![stavernia](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/stavernia/32/1006_2.png) [@stavernia](https://community.shotgridsoftware.com/u/stavernia)\
**Post date:** [March 24, 2022, 2:27pm UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-default-to-python3/14255/6 "2022-03-24T14:27:16Z")

</div>

This link will show you how to set Desktop to use python 3 by default: [Setting Python 3 for Desktop - SG Developer](https://developer.shotgridsoftware.com/69833488/#:~:text=Set%20Python%203%20as%20the%20default%20Python%20version%20in%20ShotGrid%20Desktop)

---

<div class="post-metadata">

**Author:** ![Ricardo\_Musch](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/ricardo_musch/32/405_2.png) [@Ricardo\_Musch](https://community.shotgridsoftware.com/u/Ricardo_Musch)\
**Post date:** [March 24, 2022, 5:22pm UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-default-to-python3/14255/7 "2022-03-24T17:22:55Z")

</div>

My god…

And then they pretend Apple is such a simple OS…

---

<div class="post-metadata">

**Author:** ![jrapczak](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/jrapczak/32/3704_2.png) [@jrapczak](https://community.shotgridsoftware.com/u/jrapczak)\
**Post date:** [March 25, 2022, 1:48pm UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-default-to-python3/14255/8 "2022-03-25T13:48:09Z")

</div>

Yes, we are all trying to avoid doing this, now. The treatment of Python 3 / 2 should be reversed:

The Default should now be Python 3.

Set SHOTGUN\_PYTHON\_VERSION=2 in order to revert to Python 2.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Musch](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/ricardo_musch/32/405_2.png) [@Ricardo\_Musch](https://community.shotgridsoftware.com/u/Ricardo_Musch)\
**Post date:** [March 30, 2022, 4:27pm UTC](https://community.shotgridsoftware.com/t/shotgrid-desktop-default-to-python3/14255/9 "2022-03-30T16:27:27Z")

</div>

Actually I found something in the release notes for SG Desktop.

Specifically:

> **V1.6.1**  
> What is new?
> 
> You can choose which version of Python to run Shotgun Desktop under. When running the Advanced Project Setup in Python 3 mode, projects will be configured to use the built-in Python 3 interpreter. Note that once setup, a project configured with Python 3 can still be used by a user running a Python 2 version of Shotgun Desktop and vice-versa.
> 
> To select which version of Python to use on startup, set the `SHOTGUN_PYTHON_VERSION` environment variable to `2` or `3` .

So it seems like something is set after the advanced project wizard to launch a project in python 3 mode.

> [@A new version of ShotGrid Desktop has been released!](https://community.shotgridsoftware.com/t/a-new-version-of-shotgrid-desktop-has-been-released/13877/9):
>
> v1.5.9 Fixes a crash during startup on macOS Catalina (10.15) when using an older version of the browser integration. This build is otherwise identical to 1.5.8. There's no need to upgrade if you are not on macOS Catalina or planning to upgrade to Catalina. Download links: [v1.5.9 macOS](https://sg-software.ems.autodesk.com/deploy/desktop/ShotgunInstaller_v1.5.9.dmg) | [v1.5.9 Windows](https://sg-software.ems.autodesk.com/deploy/desktop/ShotgunInstaller_v1.5.9.exe) | [v1.5.9 Linux CentOs 5/6](https://sg-software.ems.autodesk.com/deploy/desktop/shotgun_desktop-v1.5.9-1.el5.x86_64.rpm) | [v1.5.9 Linux CentOs 7/Fedora](https://sg-software.ems.autodesk.com/deploy/desktop/shotgun_desktop-v1.5.9-1.fc20.x86_64.rpm)
