X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FCore%2FBatch_Utils.cxx;h=83b43e3bfce7f692eb854220400d7bce43a18e7b;hb=2be7691d8b9f9cbddce1e7cd92eaab36de3deb2a;hp=3b706d2906bf7bb651751cba1f21170f3de98e2c;hpb=fabeb82c480d4669e9064f7f9a282bbe94e6ab0f;p=tools%2Flibbatch.git diff --git a/src/Core/Batch_Utils.cxx b/src/Core/Batch_Utils.cxx index 3b706d2..83b43e3 100644 --- a/src/Core/Batch_Utils.cxx +++ b/src/Core/Batch_Utils.cxx @@ -61,4 +61,11 @@ int Utils::getCommandOutput(const string & command, string & output) return status; } +bool Utils::isAbsolutePath(const string & path) +{ + if (path.size() == 0) + return false; + return path[0] == '/'; +} + }