Skip to content

Commit

Permalink
Update version and fix namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
KmolYuan committed Aug 30, 2019
1 parent 6a75d16 commit af4e8af
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/info/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, parent: QWidget):
self.license_text.setText(LICENSE_STRING)
self.ver_text.setText(html(_order_list(*SYS_INFO)))
self.args_text.setText(html(_content("Startup arguments are as follows:") + _order_list(
f"Open with: {ARGUMENTS.file}",
f"Open with: {ARGUMENTS.filepath}",
f"Start Path: {ARGUMENTS.c}",
f"Fusion style: {ARGUMENTS.fusion}",
f"Debug mode: {ARGUMENTS.debug_mode}",
Expand Down
8 changes: 4 additions & 4 deletions core/main_window/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,13 +717,13 @@ def reset_options(self):
widget.setText(value)

def load_from_args(self):
if not ARGUMENTS.file:
if not ARGUMENTS.filepath:
return
suffix = QFileInfo(ARGUMENTS.file).suffix()
suffix = QFileInfo(ARGUMENTS.filepath).suffix()
if suffix == 'pyslvs':
self.database_widget.read(ARGUMENTS.file)
self.database_widget.read(ARGUMENTS.filepath)
elif suffix == 'slvs':
self.__read_slvs(ARGUMENTS.file)
self.__read_slvs(ARGUMENTS.filepath)
else:
logger.critical("Unsupported format has been ignore when startup.")

Expand Down
2 changes: 1 addition & 1 deletion depend/pyslvs
Submodule pyslvs updated 1 files
+1 −1 pyslvs/__init__.py
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pyqtchart; sys_platform != 'win32'
pyqt5<=5.12.2; sys_platform == 'win32'
pyqtchart<=5.12.2; sys_platform == 'win32'
ezdxf
numpy<1.17
numpy
cython
openpyxl
psutil
Expand Down

0 comments on commit af4e8af

Please sign in to comment.