chipfoundry-cli 0.1.3__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {chipfoundry_cli-0.1.3 → chipfoundry_cli-0.1.4}/PKG-INFO +1 -1
- {chipfoundry_cli-0.1.3 → chipfoundry_cli-0.1.4}/chipfoundry_cli/main.py +9 -0
- {chipfoundry_cli-0.1.3 → chipfoundry_cli-0.1.4}/pyproject.toml +1 -1
- {chipfoundry_cli-0.1.3 → chipfoundry_cli-0.1.4}/LICENSE +0 -0
- {chipfoundry_cli-0.1.3 → chipfoundry_cli-0.1.4}/README.md +0 -0
- {chipfoundry_cli-0.1.3 → chipfoundry_cli-0.1.4}/chipfoundry_cli/__init__.py +0 -0
- {chipfoundry_cli-0.1.3 → chipfoundry_cli-0.1.4}/chipfoundry_cli/utils.py +0 -0
|
@@ -142,6 +142,9 @@ def push(project_root, sftp_host, sftp_username, sftp_key, sftp_password, projec
|
|
|
142
142
|
# Determine which authentication method to use
|
|
143
143
|
key_path = sftp_key
|
|
144
144
|
password = sftp_password
|
|
145
|
+
# Always resolve key_path to absolute path if set
|
|
146
|
+
if key_path:
|
|
147
|
+
key_path = os.path.abspath(os.path.expanduser(key_path))
|
|
145
148
|
if not key_path and not password:
|
|
146
149
|
if os.path.exists(DEFAULT_SSH_KEY):
|
|
147
150
|
key_path = DEFAULT_SSH_KEY
|
|
@@ -295,6 +298,9 @@ def pull(project_name, output_dir, sftp_host, sftp_username, sftp_key, sftp_pass
|
|
|
295
298
|
sftp_key = config.get("sftp_key")
|
|
296
299
|
key_path = sftp_key
|
|
297
300
|
password = sftp_password
|
|
301
|
+
# Always resolve key_path to absolute path if set
|
|
302
|
+
if key_path:
|
|
303
|
+
key_path = os.path.abspath(os.path.expanduser(key_path))
|
|
298
304
|
if not key_path and not password:
|
|
299
305
|
if os.path.exists(DEFAULT_SSH_KEY):
|
|
300
306
|
key_path = DEFAULT_SSH_KEY
|
|
@@ -385,6 +391,9 @@ def status(sftp_host, sftp_username, sftp_key, sftp_password):
|
|
|
385
391
|
sftp_key = config.get("sftp_key")
|
|
386
392
|
key_path = sftp_key
|
|
387
393
|
password = sftp_password
|
|
394
|
+
# Always resolve key_path to absolute path if set
|
|
395
|
+
if key_path:
|
|
396
|
+
key_path = os.path.abspath(os.path.expanduser(key_path))
|
|
388
397
|
if not key_path and not password:
|
|
389
398
|
if os.path.exists(DEFAULT_SSH_KEY):
|
|
390
399
|
key_path = DEFAULT_SSH_KEY
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|