@@ -202,16 +202,18 @@ public void processOpts() {
202
202
setPackageUrl ((String ) additionalProperties .get (PACKAGE_URL ));
203
203
}
204
204
205
+ final String packageFolder = packageName .replace ('.' , File .separatorChar );
206
+
205
207
supportingFiles .add (new SupportingFile ("README.mustache" , "" , "README.md" ));
206
208
207
209
supportingFiles .add (new SupportingFile ("tox.mustache" , "" , "tox.ini" ));
208
210
supportingFiles .add (new SupportingFile ("test-requirements.mustache" , "" , "test-requirements.txt" ));
209
211
supportingFiles .add (new SupportingFile ("requirements.mustache" , "" , "requirements.txt" ));
210
212
211
- supportingFiles .add (new SupportingFile ("configuration.mustache" , packageName , "configuration.py" ));
212
- supportingFiles .add (new SupportingFile ("__init__package.mustache" , packageName , "__init__.py" ));
213
- supportingFiles .add (new SupportingFile ("__init__model.mustache" , packageName + File .separatorChar + modelPackage , "__init__.py" ));
214
- supportingFiles .add (new SupportingFile ("__init__api.mustache" , packageName + File .separatorChar + apiPackage , "__init__.py" ));
213
+ supportingFiles .add (new SupportingFile ("configuration.mustache" , packageFolder , "configuration.py" ));
214
+ supportingFiles .add (new SupportingFile ("__init__package.mustache" , packageFolder , "__init__.py" ));
215
+ supportingFiles .add (new SupportingFile ("__init__model.mustache" , packageFolder + File .separatorChar + modelPackage , "__init__.py" ));
216
+ supportingFiles .add (new SupportingFile ("__init__api.mustache" , packageFolder + File .separatorChar + apiPackage , "__init__.py" ));
215
217
216
218
if (Boolean .FALSE .equals (excludeTests )) {
217
219
supportingFiles .add (new SupportingFile ("__init__test.mustache" , testFolder , "__init__.py" ));
@@ -220,16 +222,16 @@ public void processOpts() {
220
222
supportingFiles .add (new SupportingFile ("gitignore.mustache" , "" , ".gitignore" ));
221
223
supportingFiles .add (new SupportingFile ("travis.mustache" , "" , ".travis.yml" ));
222
224
supportingFiles .add (new SupportingFile ("setup.mustache" , "" , "setup.py" ));
223
- supportingFiles .add (new SupportingFile ("api_client.mustache" , packageName , "api_client.py" ));
225
+ supportingFiles .add (new SupportingFile ("api_client.mustache" , packageFolder , "api_client.py" ));
224
226
225
227
if ("asyncio" .equals (getLibrary ())) {
226
- supportingFiles .add (new SupportingFile ("asyncio/rest.mustache" , packageName , "rest.py" ));
228
+ supportingFiles .add (new SupportingFile ("asyncio/rest.mustache" , packageFolder , "rest.py" ));
227
229
additionalProperties .put ("asyncio" , "true" );
228
230
} else if ("tornado" .equals (getLibrary ())) {
229
- supportingFiles .add (new SupportingFile ("tornado/rest.mustache" , packageName , "rest.py" ));
231
+ supportingFiles .add (new SupportingFile ("tornado/rest.mustache" , packageFolder , "rest.py" ));
230
232
additionalProperties .put ("tornado" , "true" );
231
233
} else {
232
- supportingFiles .add (new SupportingFile ("rest.mustache" , packageName , "rest.py" ));
234
+ supportingFiles .add (new SupportingFile ("rest.mustache" , packageFolder , "rest.py" ));
233
235
}
234
236
235
237
modelPackage = packageName + "." + modelPackage ;
0 commit comments