String location = resource.getRawLocation().toString();
String name = manager.generateUniqueLaunchConfigurationNameFrom(resource.getName());
String baseDirectory = new File(location).getParent();
int resourceType = IResource.FILE;
ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(null, name);
// Python Main Tab Arguments
workingCopy.setAttribute(Constants.ATTR_PROJECT, project.getName());
workingCopy.setAttribute(Constants.ATTR_RESOURCE_TYPE, resourceType);
workingCopy.setAttribute(Constants.ATTR_INTERPRETER, nature.getProjectInterpreter().getExecutableOrJar());
workingCopy.setAttribute(Constants.ATTR_LOCATION, location);