Skip to content

Commit edf39e7

Browse files
authored
recursive wrong path fix (#352)
#changelog #filesystem
1 parent 167ab17 commit edf39e7

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

commandLine/src/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ int main(int argc, char** argv){
325325
// ofPath = "";
326326
templateName = "";
327327

328-
329328
// ------------------------------------------------------ parse args
330329
argc-=(argc>0); argv+=(argc>0); // skip program name argv[0] if present
331330
option::Stats stats(usage, argc, argv);
@@ -484,7 +483,7 @@ int main(int argc, char** argv){
484483
else {
485484
mode = PG_MODE_CREATE;
486485
}
487-
//XAXA TEMP
486+
488487
// mode = PG_MODE_CREATE;
489488

490489

commandLine/src/projects/baseProject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ bool baseProject::create(const fs::path & _path, std::string templateName){
121121
path = fs::current_path() / path;
122122
}
123123
projectDir = path;
124-
projectName = path.parent_path().filename();
124+
projectName = path.filename();
125125
bool bDoesDirExist = false;
126126

127127
fs::path project { projectDir / "src" };

0 commit comments

Comments
 (0)