Merge branch 'master' of git.xobs.io:xobs/foboot-bitstream
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					build/
 | 
				
			||||||
 | 
					__pycache__/
 | 
				
			||||||
 | 
					.env
 | 
				
			||||||
@@ -276,6 +276,18 @@ def lx_main(args):
 | 
				
			|||||||
    elif args.lx_print_deps:
 | 
					    elif args.lx_print_deps:
 | 
				
			||||||
        lx_print_deps()
 | 
					        lx_print_deps()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    elif args.lx_run is not None:
 | 
				
			||||||
 | 
					        script_name=args.lx_run[0]
 | 
				
			||||||
 | 
					        get_required_dependencies(script_name)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        fixup_env(script_path, args)
 | 
				
			||||||
 | 
					        check_submodules(script_path, args)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        try:
 | 
				
			||||||
 | 
					            sys.exit(subprocess.Popen(
 | 
				
			||||||
 | 
					                [sys.executable] + [script_name] + args.lx_run[1:]).wait())
 | 
				
			||||||
 | 
					        except:
 | 
				
			||||||
 | 
					            sys.exit(1)
 | 
				
			||||||
    elif args.init:
 | 
					    elif args.init:
 | 
				
			||||||
        if args.main is None:
 | 
					        if args.main is None:
 | 
				
			||||||
            main_name = os.getcwd().split(os.path.sep)[-1] + '.py'
 | 
					            main_name = os.getcwd().split(os.path.sep)[-1] + '.py'
 | 
				
			||||||
@@ -443,6 +455,12 @@ if __name__ == "__main__":
 | 
				
			|||||||
    parser.add_argument(
 | 
					    parser.add_argument(
 | 
				
			||||||
        '-d', '--print-deps', '--lx-print-deps', dest="lx_print_deps", help="print all possible dependencies and then exit", action="store_true"
 | 
					        '-d', '--print-deps', '--lx-print-deps', dest="lx_print_deps", help="print all possible dependencies and then exit", action="store_true"
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					    parser.add_argument(
 | 
				
			||||||
 | 
					        "--lx-verbose", help="increase verboseness of some processes", action="store_true"
 | 
				
			||||||
 | 
					    )
 | 
				
			||||||
 | 
					    parser.add_argument(
 | 
				
			||||||
 | 
					        '-r', '--run', '--lx-run', dest='lx_run', help="run the given script under lxbuildenv", nargs=argparse.REMAINDER
 | 
				
			||||||
 | 
					    )
 | 
				
			||||||
    args = parser.parse_args()
 | 
					    args = parser.parse_args()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if not lx_main(args):
 | 
					    if not lx_main(args):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user