From 7e8dc68d9986a78c75204064cb6aead0777094ae Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 20 Oct 2013 22:31:24 -0700 Subject: [PATCH] swc-windows-installer.py: Rework paths in main() Based on Ethan's path handling in 833d0ee (Add a Nano installer for Windows, 2013-09-17), while still retaining the entry-point creation for IPython and nose. --- setup/swc-windows-installer.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/setup/swc-windows-installer.py b/setup/swc-windows-installer.py index 341fac6..aba6b56 100755 --- a/setup/swc-windows-installer.py +++ b/setup/swc-windows-installer.py @@ -93,11 +93,13 @@ def make_posix_path(windows_path): def main(): - python_scripts_directory = "C:\\Anaconda\\Scripts\\" - #python_scripts_directory = "./scripts/" - create_ipython_entry_point(python_scripts_directory) - create_nosetests_entry_point(python_scripts_directory) - install_nano(python_scripts_directory) + home_dir = os.path.expanduser('~') + nano_dir = os.path.join(home_dir, '.nano') + bin_dir = os.path.join(home_dir, '.swc-bin') + create_ipython_entry_point(python_scripts_directory=bin_dir) + create_nosetests_entry_point(python_scripts_directory=bin_dir) + install_nano(installation_directory=nano_dir) + update_bash_profile(extra_paths=(bin_dir, nano_dir)) if __name__ == '__main__': -- 2.26.2