@@ -137,8 +137,6 @@ def main():
137137 while os .path .isfile (NameCustomAvatarDir ) or os .path .isdir (NameCustomAvatarDir ):
138138 NameCustomAvatarDir = input ("Please input a name for your avatar's custom directory that isn't a file or a folder: " )
139139
140- NameFBXDiffFile = NameCustomAvatarDir + 'Diff'
141- NameMetaDiffFile = NameCustomAvatarDir + 'Meta' + 'Diff'
142140
143141
144142 DescriptionDir = input ("Please input the directory of your descriptions and readme files (will skip if left empty): " )
@@ -168,6 +166,8 @@ def main():
168166 hpatchz = os .path .join (os .path .dirname (__file__ ), 'hdiff' , 'hpatchz.exe' )
169167
170168 #location of the diff files
169+ NameFBXDiffFile = NameCustomAvatarDir + 'Diff'
170+ NameMetaDiffFile = NameCustomAvatarDir + 'Meta' + 'Diff'
171171 FBXDiffFile = os .path .abspath (os .path .join (os .path .dirname (__file__ ), NameCustomDir , NameCustomAvatarDir , 'patcher' , 'data' , 'DiffFiles' , NameFBXDiffFile + ".hdiff" ))
172172 MetaDiffFile = os .path .abspath (os .path .join (os .path .dirname (__file__ ), NameCustomDir , NameCustomAvatarDir , 'patcher' , 'data' , 'DiffFiles' , NameMetaDiffFile + ".hdiff" ))
173173
@@ -253,14 +253,17 @@ def main():
253253
254254 if DescriptionDir != '' :
255255 #remplacing descriptions and readme placeholders
256+ DirPatcher = os .path .join ('Assets' , NameCustomDir , NameCustomAvatarDir , 'patcher' )
257+ DirPrefab = os .path .join ('Assets' , NameCustomDir , NameCustomAvatarDir , 'prefab' )
258+
256259 replace_placeholders_in_files_in_directory (
257260 DescriptionDir ,
258261 NameCustomAvatarDir ,
259262 CreatorName ,
260263 BoothPage ,
261264 PackageName ,
262- 'Assets' + NameCustomDir + NameCustomAvatarDir + 'patcher' ,
263- 'Assets' + NameCustomDir + NameCustomAvatarDir + 'prefab' ,
265+ DirPatcher ,
266+ DirPrefab ,
264267 )
265268
266269
0 commit comments