Skip to content

Commit f2a53c0

Browse files
author
Jackson
committed
use path not folder name
1 parent 695ece7 commit f2a53c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/classes/assets.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def get_assets_path(file_path=None, create_paths=True):
5353
if create_paths:
5454

5555
if not os.path.exists(asset_path):
56-
if os.path.exists(asset_folder_name_30_char):
56+
if os.path.exists(asset_path_30_char):
5757
#update assets folder, if it follows the previous naming convention
5858
try:
59-
shutil.copytree(asset_folder_name_30_char, asset_folder_name)
59+
shutil.copytree(asset_path_30_char, asset_path)
6060
log.info("Copying shortened asset folder. {}".format(asset_path))
6161
except:
6262
log.error("Could not make a copy of assets folder")

0 commit comments

Comments
 (0)