File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
import os
4
4
import platform
5
5
import re
6
- import shutil
7
6
import sys
8
7
import textwrap
9
8
from pathlib import Path
9
+ from shutil import which
10
10
11
11
import numpy as np
12
12
@@ -348,7 +348,7 @@ def add_compile_configvars():
348
348
349
349
# Try to find the full compiler path from the name
350
350
if param != "" :
351
- newp = shutil . which (param )
351
+ newp = which (param )
352
352
if newp is not None :
353
353
param = newp
354
354
del newp
Original file line number Diff line number Diff line change 1
1
import logging
2
2
import os
3
- import shlex
4
3
import sys
5
4
import warnings
6
5
from collections .abc import Callable , Sequence
14
13
from functools import wraps
15
14
from io import StringIO
16
15
from pathlib import Path
16
+ from shlex import shlex
17
17
18
18
from pytensor .utils import hash_from_code
19
19
@@ -541,7 +541,7 @@ def parse_config_string(
541
541
Parses a config string (comma-separated key=value components) into a dict.
542
542
"""
543
543
config_dict = {}
544
- my_splitter = shlex . shlex (config_string , posix = True )
544
+ my_splitter = shlex (config_string , posix = True )
545
545
my_splitter .whitespace = ","
546
546
my_splitter .whitespace_split = True
547
547
for kv_pair in my_splitter :
You can’t perform that action at this time.
0 commit comments