8 lines
195 B
Python
8 lines
195 B
Python
|
def _reset_sys_path():
|
||
|
# Clear generic sys.path[0]
|
||
|
import sys, os
|
||
|
resources = os.environ['RESOURCEPATH']
|
||
|
while sys.path[0] == resources:
|
||
|
del sys.path[0]
|
||
|
_reset_sys_path()
|