Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Fix KeyError if LD_LIBRARY_PATH is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Sep 7, 2020
1 parent 10d18b2 commit 8549c01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion guiscrcpy/lib/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ def __init__(self, path=None):
"sure scrcpy is installed and "
"accessible from the terminal.")
if os.getenv('SCRCPY_LDD'):
os.environ['LD_LIBRARY_PATH'] += os.getenv('SCRCPY_LDD')
if os.getenv('LD_LIBRARY_PATH'):
os.environ['LD_LIBRARY_PATH'] += os.getenv('SCRCPY_LDD')
else:
os.environ['LD_LIBRARY_PATH'] = os.getenv('SCRCPY_LDD')

def start(self, args, stdout=PIPE, stderr=PIPE):
proc = Popen(
Expand Down

0 comments on commit 8549c01

Please sign in to comment.