Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 23, 2023
1 parent bf5418a commit 618596d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/kernels/fps_kernels/kernel_driver/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ async def launch_kernel(
kernelspec = json.load(f)
cmd = [s.format(connection_file=connection_file_path) for s in kernelspec["argv"]]
if cmd and cmd[0] in {
"python",
"python%i" % sys.version_info[0],
"python%i.%i" % sys.version_info[:2],
}:
cmd[0] = sys.executable
"python",
"python%i" % sys.version_info[0],
"python%i.%i" % sys.version_info[:2],
}:
cmd[0] = sys.executable
if kernel_cwd:
prev_dir = os.getcwd()
os.chdir(kernel_cwd)
Expand Down

0 comments on commit 618596d

Please sign in to comment.