Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski authored Feb 14, 2025
1 parent b28fc8e commit 79d7b88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def get_default_threads():
__use_alt_format__ = False
__use_env_file__ = True
__use_ini_file__ = True
__use_ini_name__ = "outfile.ini"
__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:
Expand Down Expand Up @@ -514,7 +514,7 @@ def decode_unicode_escape(value):
if(os.sep == "\\"):
curscrpath = curscrpath.replace(os.sep, "/")
curscrpath = curscrpath + "/"
scrfile = curscrpath + "outfile.py"
scrfile = curscrpath + "catfile.py"
if(os.path.exists(scrfile) and os.path.isfile(scrfile)):
scrcmd = subprocess.Popen([sys.executable, scrfile] + sys.argv[1:])
scrcmd.wait()
Expand Down Expand Up @@ -1963,7 +1963,7 @@ def ReadFileHeaderDataWithContent(fp, listonly=False, uncompress=True, skipcheck
else:
fcontents.seek(0, 0)
if(uncompress):
cfcontents = UncompressArchiveFile(fcontents, formatspecs)
cfcontents = UncompressFileAlt(fcontents, formatspecs)
cfcontents.seek(0, 0)
cfcontents.seek(0, 0)
shutil.copyfileobj(cfcontents, fcontents)
Expand Down

0 comments on commit 79d7b88

Please sign in to comment.