               throw err
           )
       )
+
+  relativizePaths: (args) ->
+    tmpDir = os.tmpDir()
+    newArgs = args.map((arg) ->
+      isTmpFile = typeof arg is 'string' and path.isAbsolute(arg) and path.dirname(arg).startsWith(tmpDir)
+      if isTmpFile
+        return path.relative(tmpDir, arg)
+      return arg
+    )
+    newArgs
 
   ###
   Spawn

path = require('path')
semver = require('semver')
shellEnv = require('shell-env')

parentConfigKey = "atom-beautify.executables"


    args = _.flatten(args)
    exeName = @cmd
    config = @getConfig()
    cwd ?= os.tmpDir()

    # Resolve executable and all args
    Promise.all([@shellEnv(), Promise.all(args)])
