We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c1bd0a commit 1f39f97Copy full SHA for 1f39f97
1 file changed
openmc_plotter/__main__.py
@@ -1,7 +1,9 @@
1
-#!/usr/bin/env python3
+#!/usr/bin/env python
2
3
+from argparse import ArgumentParser
4
from pathlib import Path
5
from threading import Thread
6
+import os
7
import signal
8
import sys
9
@@ -11,6 +13,16 @@
11
13
from .main_window import MainWindow, _openmcReload
12
14
15
def main():
16
+ ap = ArgumentParser(description='OpenMC Plotter GUI')
17
+ ap.add_argument('-d','--model-directory', default=None,
18
+ help='Location of model dir (default is current dir)')
19
+
20
+ args = ap.parse_args()
21
22
+ if args.model_directory is not None:
23
+ os.chdir(args.model_directory)
24
25
+def run_app():
26
path_icon = str(Path(__file__).parent / 'assets/openmc_logo.png')
27
path_splash = str(Path(__file__).parent / 'assets/splash.png')
28
0 commit comments