Skip to content

Commit

Permalink
Fix #4388: Use correct location for compiler files in frozen app
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSpen210 committed Nov 26, 2023
1 parent e4996b3 commit 93a63f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/gameMan.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,9 @@ async def export(
# VBSP, VRAD, editoritems
export_screen.set_length('BACK', len(FILES_TO_BACKUP))
# files in compiler/
compiler_src = utils.bins_path('compiler')
try:
num_compiler_files = sum(1 for file in utils.install_path('compiler').rglob('*'))
num_compiler_files = sum(1 for file in compiler_src.rglob('*'))
except FileNotFoundError:
num_compiler_files = 0

Expand Down Expand Up @@ -906,8 +907,8 @@ async def export(

if num_compiler_files > 0:
LOGGER.info('Copying Custom Compiler!')
compiler_src = utils.install_path('compiler')
comp_dest = 'bin/linux32' if utils.LINUX else 'bin'
LOGGER.info('Compiler folder: {}', compiler_src)
for comp_file in compiler_src.rglob('*'):
# Ignore folders.
if comp_file.is_dir():
Expand Down

0 comments on commit 93a63f4

Please sign in to comment.