Skip to content

Commit

Permalink
fString conversion
Browse files Browse the repository at this point in the history
Converted fString 3.7 to 2.7 format for backward compatibility
  • Loading branch information
swnolan committed Jul 24, 2024
1 parent 6e82705 commit 43d2871
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

*.pyc
6 changes: 3 additions & 3 deletions drag_and_drop_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ def onMayaDroppedPythonFile(*args):
try:
shutil.copy(api_file, scripts_folder)
except shutil.SameFileError:
print(f'{api_file} is identical to {scripts_folder}\{api_file}\nSkipping...')
print('{} is identical to {}\{}\nSkipping...'.format(api_file, scripts_folder, api_file))
pass
try:
shutil.copy(mh_file, scripts_folder)
except shutil.SameFileError:
print(f'{mh_file} is identical to {scripts_folder}\{mh_file}\nSkipping...')
print('{} is identical to {}\{}\nSkipping...'.format(mh_file, scripts_folder, mh_file))
pass
try:
shutil.copy(mel_file, shelf_dir)
except shutil.SameFileError:
print(f'{mel_file} is identical to {shelf_dir}\{mel_file}\nSkipping...')
print('{} is identical to {}\{}\nSkipping...'.format(mel_file, shelf_file, mel_file))
pass

# Load shelf if doesn't exist
Expand Down

0 comments on commit 43d2871

Please sign in to comment.