You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- the module __init__ gets imported first so it can't detect whether __main__.py is going to be in the driver seat
- instead, __main__ itself clears out the __all__ namespace (primarily so the .pv script doesn't end up talking to a different canvas)
o.add_argument('-b', dest='activate', action='store_const', const=False, default=True, help='run PlotDevice in the background')
44
+
o.add_argument('-b', dest='activate', action='store_const', const=False, default=True, help='run PlotDevice in the background (i.e., leave focus in the active application)')
48
45
o.add_argument('-q', dest='mode', action='store_const', const='headless', default='windowed', help='run a PlotDevice script ‘quietly’ (without opening a window)')
49
46
o.add_argument('--virtualenv', metavar='PATH', help='path to virtualenv whose libraries you want to use (this should point to the top-level virtualenv directory; a folder containing a lib/python3.x/site-packages subdirectory)')
50
47
o.add_argument('--export', '-o', metavar='FILE', help='a destination filename ending in pdf, eps, png, tiff, jpg, heic, gif, or mov')
@@ -55,7 +52,7 @@ def main():
55
52
o.add_argument('--cmyk', action='store_const', const=True, default=False, help='convert colors to c/m/y/k during exports')
56
53
o.add_argument('--live', action='store_const', const=True, help='re-render graphics each time the file is saved')
57
54
o.add_argument('--args', nargs='*', default=[], metavar=('a','b'), help='arguments to be passed to the script as sys.argv')
0 commit comments