Skip to content

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

Open
T1mL3arn wants to merge 3 commits intomassive-oss:masterfrom
T1mL3arn:patch-1
Open

Determine if app is run by haxelib instead of assuming it always is#25
T1mL3arn wants to merge 3 commits intomassive-oss:masterfrom
T1mL3arn:patch-1

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