Skip to content

Use weakly_canonical to get executable's path#623

Open
fabiopicchi wants to merge 1 commit into
potree:developfrom
fabiopicchi:develop
Open

Use weakly_canonical to get executable's path#623
fabiopicchi wants to merge 1 commit into
potree:developfrom
fabiopicchi:develop

Conversation

@fabiopicchi

Copy link
Copy Markdown

Not sure why this was reverted, but it solves this issue @m-schuetz
#527

@fabiopicchi

Copy link
Copy Markdown
Author

Due to my lack of C++ understanding, I made this PR and I guess it doesn't really make sense. After reading a bit, I am failing to understand why you would want to know the executable's path for generatePage.

Doesn't it make more sense to simply use the current folder?

Getting the executable's path is a bit tricky as it might be a file added to PATH and, in that case, argv[0] will simply be "PotreeConverter"

@fabiopicchi

Copy link
Copy Markdown
Author

Ok, this should figure out the real executable path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant