Skip to content

Commit d3c403a

Browse files
authored
Merge pull request #150 from Unity-Technologies/Uni-23231-project-path-with-spaces
Uni-23231-project-path-with-spaces
2 parents 5730702 + 82666f0 commit d3c403a

File tree

1 file changed

+2
-2
lines changed
  • Assets/Integrations/Autodesk/maya/scripts/unityOneClick

1 file changed

+2
-2
lines changed

Assets/Integrations/Autodesk/maya/scripts/unityOneClick/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,11 @@ def doIt(self, args):
295295
if maya.cmds.about(macOS=True):
296296
# Use 'open -a' to bring app to front if it has already been started.
297297
# Note that the unity command will not get called.
298-
melCommand = r'system("open -a \"{0}\" --args -projectPath {1} -executeMethod {2}");'\
298+
melCommand = r'system("open -a \"{0}\" --args -projectPath \"{1}\" -executeMethod {2}");'\
299299
.format(unityAppPath, unityProjectPath, unityCommand)
300300

301301
elif maya.cmds.about(linux=True):
302-
melCommand = r'system("\"{0}\" -projectPath {1} -executeMethod {2}");'\
302+
melCommand = r'system("\"{0}\" -projectPath \"{1}\" -executeMethod {2}");'\
303303
.format(unityAppPath, unityProjectPath, unityCommand)
304304

305305
elif maya.cmds.about(windows=True):

0 commit comments

Comments
 (0)