Only attempt to set paths in the Python source code. We don't want to
accidentally do this in a jpeg or whatever. (yah, unlikely, but it is easy to say "just python source" since we already have the flag) git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@517 8cb11bc2-c004-0410-86c3-e597b4017df7remotes/tags/1.0.0-rc1
parent
cf4f673448
commit
4ea09932a2
|
@ -222,9 +222,11 @@ def install_tree(src_path, dst_path, prompt_replace):
|
|||
else:
|
||||
print " ", src
|
||||
compile_it = fname[-3:] == '.py'
|
||||
# install the file. use '1' for set_python_paths -- it doesn't hurt
|
||||
# to do a search/replace on these files [at install time]
|
||||
InstallFile(src, dst, 0644, 1, prompt_replace, compile_it)
|
||||
# set the paths in all Python files -- it doesn't hurt to do a
|
||||
# search/replace on these files even if they don't have the
|
||||
# special symbols.
|
||||
set_paths = compile_it
|
||||
InstallFile(src, dst, 0644, set_paths, prompt_replace, compile_it)
|
||||
|
||||
|
||||
## MAIN
|
||||
|
|
Loading…
Reference in New Issue