Browse files

Always expand the path for the file

As we chdir in the base directory, we need to be sure to have
an absolute path. If we have a relative path, after chdir in the base
dir, the command to get metadata will fail. And if we remove the chdir,
some file open "local" file (i.e README files). So, to be sure
that the command will run, after chdir, we need to use the absolute
  • Loading branch information...
zllak committed Mar 21, 2012
1 parent a4b8f25 commit ba2104923c8b63cf0d01a3889325334ec1540988
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/fpm/package/python.rb
@@ -65,6 +65,7 @@ def input(package)
setup_py = path_to_package
+ setup_py = File.expand_path(setup_py)
if !File.exists?(setup_py)
@logger.error("Could not find ''", :path => setup_py)

0 comments on commit ba21049

Please sign in to comment.