identify home better supports env home in non daemon
This commit is contained in:
parent
e5f3866f9e
commit
9571ea519d
@ -61,7 +61,7 @@ def block_exec(event, info):
|
|||||||
if info[0].co_filename.endswith(source):
|
if info[0].co_filename.endswith(source):
|
||||||
return
|
return
|
||||||
|
|
||||||
if info[0].co_filename.startswith(home + 'plugins/'):
|
if home + 'plugins/' in info[0].co_filename:
|
||||||
return
|
return
|
||||||
|
|
||||||
code_b64 = base64.b64encode(info[0].co_code).decode()
|
code_b64 = base64.b64encode(info[0].co_code).decode()
|
||||||
|
@ -23,6 +23,9 @@ def identify_home():
|
|||||||
|
|
||||||
path = os.environ.get('ONIONR_HOME', None)
|
path = os.environ.get('ONIONR_HOME', None)
|
||||||
|
|
||||||
|
if not os.getcwd().endswith('src') and path is not None:
|
||||||
|
path = 'src/' + path
|
||||||
|
|
||||||
if path is None:
|
if path is None:
|
||||||
system = platform.system()
|
system = platform.system()
|
||||||
if system == 'Linux':
|
if system == 'Linux':
|
||||||
|
Loading…
Reference in New Issue
Block a user