Pushed: https://github.com/tianocore/edk2-staging/commit/1bacbe66

-----Original Message-----
From: Bjorge, Erik C <[email protected]> 
Sent: Wednesday, April 29, 2020 5:19 PM
To: [email protected]
Cc: Desimone, Ashley E <[email protected]>; Desimone, Nathaniel L 
<[email protected]>; Pandya, Puja <[email protected]>; Bret 
Barkelew <[email protected]>; Agyeman, Prince 
<[email protected]>
Subject: [edk2-staging/EdkRepo] [PATCH v1] EdkRepo: Fix running from source 
detection

Code did not add user site packages if they were enabled.  This caused edkrepo 
installed in the user site packages as being run from source.

Signed-off-by: Erik Bjorge <[email protected]>
Cc: Ashley E Desimone <[email protected]>
Cc: Nate DeSimone <[email protected]>
Cc: Puja Pandya <[email protected]>
Cc: Bret Barkelew <[email protected]>
Cc: Prince Agyeman <[email protected]>
---
 edkrepo/edkrepo_entry_point.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/edkrepo/edkrepo_entry_point.py b/edkrepo/edkrepo_entry_point.py 
index 76a5a18..b1c08d4 100644
--- a/edkrepo/edkrepo_entry_point.py
+++ b/edkrepo/edkrepo_entry_point.py
@@ -27,6 +27,8 @@ import edkrepo
 
 #Prefer the site-packages version of edkrepo  sitepackages = 
site.getsitepackages()
+if site.ENABLE_USER_SITE:
+    sitepackages.append(site.getusersitepackages())
 sys.path = sitepackages + sys.path
 edkrepo_site_dir = None
 edkrepo_package_path = os.path.dirname(os.path.dirname(edkrepo.__file__))
--
2.21.0.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#58594): https://edk2.groups.io/g/devel/message/58594
Mute This Topic: https://groups.io/mt/73366333/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to