Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding and ' at ' in line #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions usr/lib/python3/dist-packages/auto_jack.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
temp_name = f"{config_path}/temp_aj.json"
# log = False


def version():
''' get the version we are running as. Used mostly to detect
if a new version has been installed but the old version
Expand All @@ -48,6 +49,7 @@ def version():
return vers
return vers


def check_user():
""" Check that user is a human and is not root
"""
Expand Down Expand Up @@ -677,7 +679,7 @@ def check_devices(our_db):
f"/proc/asound/card{str(x)}/stream0",
"r") as desc_file:
for line in desc_file:
if line0:
if line0 and ' at ' in line:
prebus = line.strip().split(' at ')[1]
bus = line.strip().split(' at ')[1].split(', ')[0]
cdescription = line.strip().split(' at ')[0]
Expand Down Expand Up @@ -892,7 +894,8 @@ def check_new(no_check=False):
global our_db
global temp_name
if log:
print(f"checking config file for compatability with version {version()}")
print(
f"checking config file for compatability with version {version()}")
c_file = expanduser(new_name)
ck_file = expanduser(temp_name)
count = 0
Expand Down