From: W. Trevor King Date: Mon, 21 Oct 2013 05:31:24 +0000 (-0700) Subject: swc-windows-installer.py: Rework paths in main() X-Git-Tag: v0.1~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e8dc68d9986a78c75204064cb6aead0777094ae;p=swc-setup-windows-installer.git 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. --- 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__':