File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 77* .so
88.noseids
99* .sublime-workspace
10+ * .egg-info
Original file line number Diff line number Diff line change 1212
1313def _init_externals ():
1414 """Initialize external projects by putting them into the path"""
15- for module in ('smmap' ,):
16- if 'PYOXIDIZER' not in os .environ :
17- sys .path .append (os .path .join (os .path .dirname (__file__ ), 'ext' , module ))
18-
19- try :
20- __import__ (module )
21- except ImportError as e :
22- raise ImportError ("'%s' could not be imported, assure it is located in your PYTHONPATH" % module ) from e
23- # END verify import
15+ if 'PYOXIDIZER' not in os .environ :
16+ where = os .path .join (os .path .dirname (__file__ ), 'ext' , 'smmap' )
17+ if os .path .exists (where ):
18+ sys .path .append (where )
19+
20+ import smmap
21+ del smmap
2422 # END handle imports
2523
2624#} END initialization
You can’t perform that action at this time.
0 commit comments