Add os.path.expanduser() wrappers to user-supplied paths.
[hooke.git] / hooke / plugin / command_stack.py
index 59ca5ddbe79e98782ff5d60f3d038cf2293349cf..af7549016c79dd90ca106e5baad2305124c85bc0 100644 (file)
@@ -236,7 +236,8 @@ input command stack.  If the command stack does not have an input file
             params['output'] = 'default'
         if params['output'] != None:
             params['output'] = os.path.join(
-                self.plugin.config['path'], params['output'])
+                os.path.expanduser(self.plugin.config['path']),
+                params['output'])
         return params
 
 class LoadCommand (CommandStackCommand):
@@ -265,7 +266,8 @@ File name for the input command stack.
             params['input'] = 'default'
         if params['input'] != None:
             params['input'] = os.path.join(
-                self.plugin.config['path'], params['input'])
+                os.path.expanduser(self.plugin.config['path']),
+                params['input'])
         return params