message: modify wastPath and abiPath of cleos set contract to be relative to contract dir
diff: @@ -2115,11 +2115,12 @@ int main( int argc, char** argv ) {
  if( cpath.filename().generic_string() == "." ) cpath = cpath.parent_path();
  - if( wastPath.empty() )
  - {
  + if( wastPath.empty() ) {
  wastPath = (cpath / (cpath.filename().generic_string()+".wasm")).generic_string();
  if (!fc::exists(wastPath))
  wastPath = (cpath / (cpath.filename().generic_string()+".wast")).generic_string();
  + } else {
  + wastPath = (cpath / wastPath).generic_string();
  }
  std::cerr << localized(("Reading WAST/WASM from " + wastPath + "...").c_str()) << std::endl;
  @@ -2147,9 +2148,10 @@ int main( int argc, char** argv ) {
  fc::path cpath(contractPath);
  if( cpath.filename().generic_string() == "." ) cpath = cpath.parent_path();
  - if( abiPath.empty() )
  - {
  + if( abiPath.empty() ) {
  abiPath = (cpath / (cpath.filename().generic_string()+".abi")).generic_string();
  + } else {
  + abiPath = (cpath / abiPath).generic_string();
  }
  EOS_ASSERT( fc::exists( abiPath ), abi_file_not_found, "no abi file found ${f}", ("f", abiPath) );
  