Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
fix HOME env var in script editor
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalkolar committed Mar 7, 2022
1 parent 11e6e43 commit 5867892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesmerize/viewer/modules/script_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def add_tab(self, file_path) -> QtWidgets.QTextEdit:
return self.ui.tabWidget.currentWidget()

def open_temp_script(self):
home_dir = os.environ['HOME']
home_dir = os.environ[HOME]
tmp_script = home_dir + '/mtemp.py'
if not os.path.isfile(tmp_script):
open(tmp_script, 'w').close()
Expand Down Expand Up @@ -102,4 +102,4 @@ def open_file(self):
app = QtWidgets.QApplication([])
w = ModuleGUI()
w.show()
app.exec_()
app.exec_()

0 comments on commit 5867892

Please sign in to comment.