Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Update cmdarg.cpp (#1211)
Browse files Browse the repository at this point in the history
Co-authored-by: Alyona Teyber <[email protected]>
  • Loading branch information
dchassin and aivanova5 authored Jan 19, 2023
1 parent 3b7e215 commit a1587c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/cmdarg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,12 @@ STATUS GldCmdarg::no_cmdargs(void)
{
char guiname[1024] = "gridlabd-editor.py";
char guipath[1024];
if ( find_file(guiname,NULL,R_OK,guipath,sizeof(guipath)) )
char glmpath[1024];
if ( find_file("gridlabd.glm",".",R_OK,glmpath,sizeof(glmpath)) )
{
return loadall(glmpath);
}
else if ( find_file(guiname,NULL,R_OK,guipath,sizeof(guipath)) )
{
char command[2048];
snprintf(command,sizeof(command)-1,"%s/python3 %s &",global_bindir,guipath);
Expand Down

0 comments on commit a1587c4

Please sign in to comment.