def main():
if len(sys.argv) < 2:
watch_dir = zenipy.file_selection(
multiple=False,
directory=True,
save=False,
confirm_overwrite=False,
filename=None,
title='Choose a directory to watch',
width=20,
height=20,
timeout=None
)
else:
watch_dir = os.path.abspath(sys.argv[1])
if not watch_dir:
raise SystemExit('No watch directory selected - exiting')
cfg.set_watch_dir(watch_dir)
cfg.read()
app = Application()
app.run()
评论列表
文章目录