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

Commit

Permalink
Merge pull request #52 from villetuh/command_line_relative_path_support
Browse files Browse the repository at this point in the history
Support relative paths from command line
  • Loading branch information
unitycoder committed Mar 29, 2018
2 parents 00dee17 + d768e60 commit cd598e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UnityLauncher/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ void Start()
// path
var projectPathArgument = args[2];

// resolve full path if path parameter isn't a rooted path
if (!Path.IsPathRooted(projectPathArgument))
{
projectPathArgument = Directory.GetCurrentDirectory() + projectPathArgument;
}

var version = Tools.GetProjectVersion(projectPathArgument);

// take extra arguments also
Expand Down

0 comments on commit cd598e9

Please sign in to comment.