Commits

Leonard Ritter committed 81e2b2d

* dwk_edit: fixed exception when passing command line argument

  • Participants
  • Parent commits 5148c61

Comments (0)

Files changed (1)

File python/utils/dwk_edit

     options, args = parser.parse_args()
     
     browser = ItemBrowser()
-    for arg in args:
-        browser.open_file(arg)
+    if args:
+        browser.filepath.set(args[0])
+        browser.open_document()
     browser.run()