Subir archivos a "/"
This commit is contained in:
		
						commit
						7b81f7177d
					
				
							
								
								
									
										14
									
								
								modulecli.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								modulecli.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | |||||||
|  | import click | ||||||
|  | from picomc.cli.main import picomc_cli | ||||||
|  | 
 | ||||||
|  | def run_command(command): | ||||||
|  |     try: | ||||||
|  |         picomc_cli.main(args=command.split()) | ||||||
|  |     except SystemExit as e: | ||||||
|  |         # Handle the SystemExit exception to prevent the script from exiting | ||||||
|  |         if e.code != 0: | ||||||
|  |             raise | ||||||
|  | 
 | ||||||
|  | if __name__ == "__main__": | ||||||
|  |     import sys | ||||||
|  |     run_command(" ".join(sys.argv[1:])) | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user