File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 249
249
--show-args:
250
250
Show sys.argv and exit. For debugging.
251
251
252
- --sync-paths
252
+ --sync-paths <path>
253
253
Do not run anything, instead write required files/directories/checkouts
254
- to stdout , one per line. This is to help with automated running on
254
+ to <path> , one per line. This is to help with automated running on
255
255
remote machines.
256
256
257
257
--system-site-packages 0|1
@@ -557,7 +557,7 @@ def main(argv):
557
557
elif arg == '--show-args' :
558
558
show_args = 1
559
559
elif arg == '--sync-paths' :
560
- sync_paths = True
560
+ sync_paths = next ( args )
561
561
562
562
elif arg == '--system-site-packages' :
563
563
system_site_packages = int (next (args ))
@@ -595,10 +595,11 @@ def main(argv):
595
595
# Handle special args --sync-paths, -h, -v, -o first.
596
596
#
597
597
if sync_paths :
598
- # Just print required files, directories and checkouts.
599
- print (pymupdf_dir )
600
- if mupdf_sync :
601
- print (mupdf_sync )
598
+ # Print required files, directories and checkouts.
599
+ with open (sync_paths , 'w' ) as f :
600
+ print (pymupdf_dir , file = f )
601
+ if mupdf_sync :
602
+ print (mupdf_sync , file = f )
602
603
return
603
604
604
605
if show_help :
You can’t perform that action at this time.
0 commit comments