File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def select_create_key() -> None:
5555 if input_value == "" :
5656 create_new_key ()
5757 else :
58- load_key ()
58+ load_key (input_value )
5959 except BitPayException as exe :
6060 print (exe )
6161
@@ -191,9 +191,16 @@ def update_config_file() -> None:
191191 print (exe )
192192
193193
194- def load_key () -> None :
195- # TODO: Need to implement this function
196- pass
194+ def load_key (path : str ) -> None :
195+ global private_key_path
196+
197+ private_key_path = path
198+ if not os .path .exists (private_key_path ):
199+ print ("Please set correct private key path! \n " )
200+ pass
201+
202+ with open (os .path .abspath (private_key_path ), "r" ) as private_key :
203+ select_tokens (private_key .read ())
197204
198205
199206if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments