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

Determine if app is run by haxelib instead of assuming it always is #25

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

T1mL3arn
Copy link

When you run compiled app not from haxelib (like during some development or testing) there is a bug when mlib losts the last passed argument. E.g. passing these three args with neko run.n foo bar . seen by mlib like foo bar (without the last dot). This happens in Console.hx

/**
* Strips the dir path from the end of the args array.
* This is the path from where haxelib was called
* */
private function getCurrentDirectoryPathFromArgs(a:Array<String>):File

because it is always told it is a haxelib run.

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