Skip to content

Commit

Permalink
Merge pull request #1214 from doronz88/bugfix/remove-xonshrc
Browse files Browse the repository at this point in the history
afc: avoid running xonshrc
  • Loading branch information
doronz88 authored Sep 26, 2024
2 parents 1c56917 + 06c3ba3 commit 8766980
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pymobiledevice3/services/afc.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,11 +726,8 @@ class AfcShell:
@classmethod
def create(cls, service_provider: LockdownServiceProvider, service_name: Optional[str] = None,
service: Optional[LockdownService] = None, auto_cd: Optional[str] = '/'):
args = ['--rc']
home_rc = pathlib.Path('~/.xonshrc').expanduser()
if home_rc.exists():
args.append(str(home_rc.expanduser().absolute()))
args.append(str(pathlib.Path(__file__).absolute()))
args = ['--rc', str(pathlib.Path(__file__).absolute())]
os.environ['XONSH_COLOR_STYLE'] = 'default'
XSH.ctx['_class'] = cls
XSH.ctx['_lockdown'] = service_provider
XSH.ctx['_auto_cd'] = auto_cd
Expand Down

0 comments on commit 8766980

Please sign in to comment.