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