Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use executable's directory rather than working directory in examples #9

Open
cztomczak opened this issue Feb 10, 2014 · 2 comments
Open

Comments

@cztomczak
Copy link
Owner

See the main_linux.go and main_windows.go files.

Daniel Theophanes suggested to use something like this:
https://bitbucket.org/kardianos/osext/src

On Windows the executable's path can be obtained by a call to GetModuleFileNameW().

Though I don't see an example for Linux in the link above.

@cztomczak
Copy link
Owner Author

@cztomczak
Copy link
Owner Author

OS X example is using executable's directory.

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

No branches or pull requests

1 participant