# \[BUG ?\] Ignition 8.1.0 - \_RETARGET\_FROM\_PROJECT is not set anymore

**URL:** <https://forum.inductiveautomation.com/t/bug-ignition-8-1-0-retarget-from-project-is-not-set-anymore/40642>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [November 13, 2020, 5:19pm UTC](https://forum.inductiveautomation.com/t/bug-ignition-8-1-0-retarget-from-project-is-not-set-anymore/40642 "2020-11-13T17:19:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [November 13, 2020, 5:19pm UTC](https://forum.inductiveautomation.com/t/bug-ignition-8-1-0-retarget-from-project-is-not-set-anymore/40642/1 "2020-11-13T17:19:33Z")

</div>

in Ignition 8.0.16 and before,  
when we use system.util.retarget("MyProj")

in the project launched, in the client statup script we was able to use getGlobals  
to obtain the source project.

```auto
NomProject = system.util.getGlobals()['_RETARGET_FROM_PROJECT']

```

In 8.1.0, after a retarget the system.util.getGlobals() return an empty map.

@paul-griffith  
This feature seem to be broken ?

> [@Need to enable Auto-login, but hide auto-login button on login screen](http://forum.inductiveautomation.com/t/need-to-enable-auto-login-but-hide-auto-login-button-on-login-screen/28613/1):
>
> I need to enable the auto-login in the project (with user “autolog-user”) But I don’t wan’t the “Auto Login” button on the login screen. I have the same project for PC client and TV client. clientTagModeTV is set by the launcher commnand. In the client start script, username = system.security.getUsername() if username == "autolog-user" && clientTagModeTV: system.security.logout() The setting enable the auto-login manage the visibility of the “Auto login” button. It would be usefull if we…

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 13, 2020, 5:26pm UTC](https://forum.inductiveautomation.com/t/bug-ignition-8-1-0-retarget-from-project-is-not-set-anymore/40642/2 "2020-11-13T17:26:41Z")

</div>

Can you directly access `_RETARGET_FROM_PROJECT`? It should still be in the true globals map.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [November 13, 2020, 6:03pm UTC](https://forum.inductiveautomation.com/t/bug-ignition-8-1-0-retarget-from-project-is-not-set-anymore/40642/3 "2020-11-13T18:03:32Z")

</div>

how to read the “true” globals map ???

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 13, 2020, 7:11pm UTC](https://forum.inductiveautomation.com/t/bug-ignition-8-1-0-retarget-from-project-is-not-set-anymore/40642/4 "2020-11-13T19:11:00Z")

</div>

[https://docs.python.org/2.7/library/functions.html#globals](https://docs.python.org/2.7/library/functions.html#globals)

If it’s in the actual, Python-standard, globals map (which it should be, that code hasn’t changed) then in both 7.9, 8.0, and 8.1 you should be able to literally just refer to `_RETARGET_FROM_PROJECT` as a variable anywhere in your script.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [November 13, 2020, 8:17pm UTC](https://forum.inductiveautomation.com/t/bug-ignition-8-1-0-retarget-from-project-is-not-set-anymore/40642/5 "2020-11-13T20:17:16Z")

</div>

globals() return a dictionnary , but there is no key “\_RETARGET\_FROM\_PROJECT” ?  
print \_RETARGET\_FROM\_PROJECT return an error varaible is not defined ???

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [November 13, 2020, 9:29pm UTC](https://forum.inductiveautomation.com/t/bug-ignition-8-1-0-retarget-from-project-is-not-set-anymore/40642/6 "2020-11-13T21:29:53Z")

</div>

Ooops  
I looked for globals inside a function.  
Directly in the client startup script globals has a \_RETARGET\_FROM\_PROJECT.

```auto
globals()
Return a dictionary representing the current global symbol table. This is always the dictionary of the current module (inside a function or method, this is the module where it is defined, not the module from which it is called).

```
