]> Creatis software - bbtk.git/blobdiff - kernel/appli/bbs2cpp/bbs2.cxx
#3512 clean bbs2 python version
[bbtk.git] / kernel / appli / bbs2cpp / bbs2.cxx
index 180e8dae6959f357f6bdc654ed410f9b18c39d58..25c1290d8fa93d20c878ccfe606301be0f74edeb 100644 (file)
@@ -58,10 +58,18 @@ int main(int argc, char* argv[])
         printf("bbs2 <filename.bbs> <cxx|py|js>\n");
         return 1;
     }
-    std::string fileBase,file,path;
+
+//EED 2023-11-07
+    //    std::string fileBase,file,path;
+    //    std::string extention( argv[2] );
+    //    fileBase = bbtk::Utilities::ExtractScriptName(argv[1],path);
+    //    file = fileBase + std::string(".") + extention;
+
+    std::string fileBase,path;
     std::string extention( argv[2] );
     fileBase = bbtk::Utilities::ExtractScriptName(argv[1],path);
-    file = fileBase + std::string(".") + extention;
+    std::string file(path+"/"+fileBase+"."+extention);
+    printf("file %s \n",file.c_str() );
 
     if ( extention.compare("cxx")==0)
     {