Skip to content

Commit

Permalink
Update pycatfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Jan 24, 2025
1 parent b1e0957 commit 02c55e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,18 +260,19 @@ def get_default_threads():
__use_alt_format__ = False
__use_env_file__ = True
__use_ini_file__ = True
__use_ini_name__ "catfile.ini"
if('PYCATFILE_CONFIG_FILE' in os.environ and os.path.exists(os.environ['PYCATFILE_CONFIG_FILE']) and __use_env_file__):
scriptconf = os.environ['PYCATFILE_CONFIG_FILE']
else:
prescriptpath = get_importing_script_path()
if(prescriptpath is not None):
scriptconf = os.path.join(os.path.dirname(prescriptpath), "catfile.ini")
scriptconf = os.path.join(os.path.dirname(prescriptpath), __use_ini_name__)
else:
scriptconf = ""
if os.path.exists(scriptconf):
__config_file__ = scriptconf
else:
__config_file__ = os.path.join(os.path.dirname(os.path.realpath(__file__)), "catfile.ini")
__config_file__ = os.path.join(os.path.dirname(os.path.realpath(__file__)), __use_ini_name__)
if(not havepysftp):
__use_pysftp__ = False
__use_http_lib__ = "httpx"
Expand Down

0 comments on commit 02c55e9

Please sign in to comment.