Skip to content

Commit 02c55e9

Browse files
author
Kazuki Suzuki Przyborowski
committed
Update pycatfile.py
1 parent b1e0957 commit 02c55e9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pycatfile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,18 +260,19 @@ def get_default_threads():
260260
__use_alt_format__ = False
261261
__use_env_file__ = True
262262
__use_ini_file__ = True
263+
__use_ini_name__ "catfile.ini"
263264
if('PYCATFILE_CONFIG_FILE' in os.environ and os.path.exists(os.environ['PYCATFILE_CONFIG_FILE']) and __use_env_file__):
264265
scriptconf = os.environ['PYCATFILE_CONFIG_FILE']
265266
else:
266267
prescriptpath = get_importing_script_path()
267268
if(prescriptpath is not None):
268-
scriptconf = os.path.join(os.path.dirname(prescriptpath), "catfile.ini")
269+
scriptconf = os.path.join(os.path.dirname(prescriptpath), __use_ini_name__)
269270
else:
270271
scriptconf = ""
271272
if os.path.exists(scriptconf):
272273
__config_file__ = scriptconf
273274
else:
274-
__config_file__ = os.path.join(os.path.dirname(os.path.realpath(__file__)), "catfile.ini")
275+
__config_file__ = os.path.join(os.path.dirname(os.path.realpath(__file__)), __use_ini_name__)
275276
if(not havepysftp):
276277
__use_pysftp__ = False
277278
__use_http_lib__ = "httpx"

0 commit comments

Comments
 (0)