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

Cannot access system executable name when running standalone #19

Open
retrogradeorbit opened this issue Dec 17, 2014 · 3 comments
Open

Comments

@retrogradeorbit
Copy link

When running the stand alone executable on a Unix system, there seems to be no way to access the executable's name.

(defn -main [& args]
  (println (System/getenv "_")))

$ lein run arg1 arg2
/usr/bin/java

$ target/bin arg1 arg2
nil

What I really want here is "target/bin", but I'm not sure if that is right. Maybe "/usr/bin/java" is more correct. Maybe the "target/bin" can be passed in to java somehow? Your thoughts?

@Raynes
Copy link
Owner

Raynes commented Dec 17, 2014

I do not know what this means.

@retrogradeorbit
Copy link
Author

sorry. I clicked the button early. You are too fast!

@Raynes
Copy link
Owner

Raynes commented Dec 17, 2014

Hehe, no worries.

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

2 participants