Skip to content

Commit

Permalink
Update pycatfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski authored Nov 17, 2024
1 parent f02a039 commit 6d09dce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,11 @@

__use_pysftp__ = False
__use_alt_format__ = False
__config_file__ = os.path.join(os.path.dirname(os.path.realpath(__file__)), "catfile.ini")
scriptconf = os.path.join(os.path.dirname(get_importing_script_path()), "catfile.ini")
if os.path.exists(scriptconf)
__config_file__ = scriptconf
else:
__config_file__ = os.path.join(os.path.dirname(os.path.realpath(__file__)), "catfile.ini")
__use_ini_file__ = True
if(not havepysftp):
__use_pysftp__ = False
Expand Down

0 comments on commit 6d09dce

Please sign in to comment.