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