Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.

Commit cd598e9

Browse files
authored
Merge pull request #52 from villetuh/command_line_relative_path_support
Support relative paths from command line
2 parents 00dee17 + d768e60 commit cd598e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎UnityLauncher/Form1.cs

+6
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ void Start()
7373
// path
7474
var projectPathArgument = args[2];
7575

76+
// resolve full path if path parameter isn't a rooted path
77+
if (!Path.IsPathRooted(projectPathArgument))
78+
{
79+
projectPathArgument = Directory.GetCurrentDirectory() + projectPathArgument;
80+
}
81+
7682
var version = Tools.GetProjectVersion(projectPathArgument);
7783

7884
// take extra arguments also

0 commit comments

Comments
 (0)