This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-python.git


The following commit(s) were added to refs/heads/master by this push:
     new 8398bdd  Fix typo that cause failure in loading user sitecustomize.py 
(#193)
8398bdd is described below

commit 8398bdd9fdc20fd9d36db2881b991567a14e5bc3
Author: Superskyyy <[email protected]>
AuthorDate: Sun Mar 20 02:48:41 2022 -0400

    Fix typo that cause failure in loading user sitecustomize.py (#193)
    
    Signed-off-by: Superskyyy <[email protected]>
---
 skywalking/bootstrap/loader/sitecustomize.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/skywalking/bootstrap/loader/sitecustomize.py 
b/skywalking/bootstrap/loader/sitecustomize.py
index 77b83b1..86b938e 100644
--- a/skywalking/bootstrap/loader/sitecustomize.py
+++ b/skywalking/bootstrap/loader/sitecustomize.py
@@ -16,7 +16,7 @@
 #
 
 """ This version of sitecustomize will
-1. initializes the SkyWalking Python Agent.
+1. initialize the SkyWalking Python Agent.
 2. invoke an existing sitecustomize.py.
 Not compatible with Python <= 3.3
 
@@ -75,7 +75,7 @@ loaded = sys.modules.pop('sitecustomize', None)  # pop 
sitecustomize from loaded
 
 # now try to find the original sitecustomize provided in user env
 try:
-    loaded = importlib.import_module('sitecustomie')
+    loaded = importlib.import_module('sitecustomize')
     _sw_loader_logger.debug(f'Found user sitecustomize file {loaded}, 
imported')
 except ImportError:  # ModuleNotFoundError
     _sw_loader_logger.debug('Original sitecustomize module not found, 
skipping.')

Reply via email to