Skip to content
Snippets Groups Projects
  • Davies Liu's avatar
    c854b9fc
    [SPARK-3634] [PySpark] User's module should take precedence over system modules · c854b9fc
    Davies Liu authored
    Python modules added through addPyFile should take precedence over system modules.
    
    This patch put the path for user added module in the front of sys.path (just after '').
    
    Author: Davies Liu <davies.liu@gmail.com>
    
    Closes #2492 from davies/path and squashes the following commits:
    
    4a2af78 [Davies Liu] fix tests
    f7ff4da [Davies Liu] ad license header
    6b0002f [Davies Liu] add tests
    c16c392 [Davies Liu] put addPyFile in front of sys.path
    c854b9fc
    History
    [SPARK-3634] [PySpark] User's module should take precedence over system modules
    Davies Liu authored
    Python modules added through addPyFile should take precedence over system modules.
    
    This patch put the path for user added module in the front of sys.path (just after '').
    
    Author: Davies Liu <davies.liu@gmail.com>
    
    Closes #2492 from davies/path and squashes the following commits:
    
    4a2af78 [Davies Liu] fix tests
    f7ff4da [Davies Liu] ad license header
    6b0002f [Davies Liu] add tests
    c16c392 [Davies Liu] put addPyFile in front of sys.path