Skip to content

Commit 82666f0

Browse files
committed
Uni-23231-project-path-with-spaces
1 parent 3517d1f commit 82666f0

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)