diff options
Diffstat (limited to 'scripts/ac_update_extern_pkg')
-rwxr-xr-x | scripts/ac_update_extern_pkg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/ac_update_extern_pkg b/scripts/ac_update_extern_pkg index 4243e19..e6f1e60 100755 --- a/scripts/ac_update_extern_pkg +++ b/scripts/ac_update_extern_pkg @@ -15,7 +15,7 @@ from collections import OrderedDict # AstroConda naming conventions: extern_pkg = 'extern.pkg' -backup = 'extern.pkg.ac_bak' # avoid possible collision with user .bak +extpkg_bak = 'extern.pkg.ac_bak' # avoid possible collision with user .bak extern_dir = 'iraf_extern' template = 'ur_extern.pkg' path_sub = 'UR_VDIR' # a regexp @@ -153,7 +153,7 @@ else: buffer += keep_str # Back up the original extern.pkg: -shutil.copy2(extpkg_path, os.path.join(path, backup)) +shutil.copy2(extpkg_path, os.path.join(path, extpkg_bak)) # Write the modified extern.pkg: with open(extpkg_path, 'w') as extpkg_file: |