Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
eevel committed Sep 14, 2022
1 parent ac041cf commit 7661d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/twisted/conch/scripts/ckeygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _defaultPrivateKeySubtype(keyType):
def getKeyOrDefault(options):
if not options["filename"]:
filename = os.path.expanduser("~/.ssh/id_rsa")
if platform.system() == "Windows":
if platform.system() == "Windows": #noqa
filename = os.path.expandvars(R"%HOMEPATH %\.ssh\id_rsa")
options["filename"] = (
input("Enter file in which the key is (%s): " % filename) or filename
Expand Down Expand Up @@ -322,7 +322,7 @@ def _saveKey(key, options):
keyTypeName = KeyTypeMapping[key.type()]
if not options["filename"]:
defaultPath = os.path.expanduser(f"~/.ssh/id_{keyTypeName}")
if platform.system() == "Windows":
if platform.system() == "Windows": #noqa
defaultPath = os.path.expanduser(fr"~\.ssh\id_{keyTypeName}")
newPath = _inputSaveFile(
f"Enter file in which to save the key ({defaultPath}): "
Expand Down

0 comments on commit 7661d68

Please sign in to comment.