Skip to content

Commit

Permalink
Bug fix, use the home directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cattermole committed Mar 26, 2019
1 parent 49ba9cd commit 36e522a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/mmSolver/_api/collection.py
Expand Up @@ -682,8 +682,9 @@ def _compile(self, prog_fn=None, status_fn=None):
debug_file = maya.cmds.file(query=True, sceneName=True)
debug_file = os.path.basename(debug_file)
debug_file, ext = os.path.splitext(debug_file)
# TODO: Find a way to set the default directory path.
debug_file_path = os.path.join(
os.path.expanduser('${HOME}'),
os.path.expanduser('~/'),
debug_file + '_' + str(i).zfill(6) + '.log')
if len(debug_file) > 0 and debug_file_path is not None:
kwargs['debugFile'] = debug_file_path
Expand Down

0 comments on commit 36e522a

Please sign in to comment.