diff --git a/setup.py b/setup.py index de1fb6c..7a80666 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setuptools.setup( install_requires=['xonsh'], platforms='Unix-like', scripts=['xxh'], - package_data={'xonssh_xxh':['*.xsh']}, + package_data={'xonssh_xxh':['*.xsh', '*.sh']}, packages=setuptools.find_packages(), classifiers=["Programming Language :: Python :: 3"], license="BSD", diff --git a/host_info.sh b/xonssh_xxh/host_info.sh similarity index 100% rename from host_info.sh rename to xonssh_xxh/host_info.sh diff --git a/xxh b/xxh index 31df8d2..ab5c0a4 100755 --- a/xxh +++ b/xxh @@ -147,7 +147,7 @@ if os.path.abspath(opt.host_xxh_home) == '/': print("Host xxh home path {host_xxh_home} looks like /. Please check twice!") exit(1) -host_info = $(cat host_info.sh | sed @(f's|_xxh_home_|{opt.host_xxh_home}|') | ssh @(ssh_arguments) @(host) -T "bash -s" ).strip() +host_info = $(cat @(f"{package_dir_path}/host_info.sh") | sed @(f's|_xxh_home_|{opt.host_xxh_home}|') | ssh @(ssh_arguments) @(host) -T "bash -s" ).strip() if host_info == '': print(f'Unknown answer from host when checking user home path. Check your connection parameters using ordinary ssh')