File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33import os
44import platform
55import re
6- import shutil
76import sys
87import textwrap
98from pathlib import Path
9+ from shutil import which
1010
1111import numpy as np
1212
@@ -348,7 +348,7 @@ def add_compile_configvars():
348348
349349 # Try to find the full compiler path from the name
350350 if param != "" :
351- newp = shutil . which (param )
351+ newp = which (param )
352352 if newp is not None :
353353 param = newp
354354 del newp
Original file line number Diff line number Diff line change 11import logging
22import os
3- import shlex
43import sys
54import warnings
65from collections .abc import Callable , Sequence
1413from functools import wraps
1514from io import StringIO
1615from pathlib import Path
16+ from shlex import shlex
1717
1818from pytensor .utils import hash_from_code
1919
@@ -541,7 +541,7 @@ def parse_config_string(
541541 Parses a config string (comma-separated key=value components) into a dict.
542542 """
543543 config_dict = {}
544- my_splitter = shlex . shlex (config_string , posix = True )
544+ my_splitter = shlex (config_string , posix = True )
545545 my_splitter .whitespace = ","
546546 my_splitter .whitespace_split = True
547547 for kv_pair in my_splitter :
You can’t perform that action at this time.
0 commit comments