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-e597b4017df7
remotes/tags/1.0.0-rc1
gstein 2002-05-22 09:01:14 +00:00
parent cf4f673448
commit 4ea09932a2
1 changed files with 5 additions and 3 deletions

View File

@ -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