Skip to content

Commit

Permalink
Merge pull request #95 from HIllya51/master
Browse files Browse the repository at this point in the history
fix filenotfounderror
  • Loading branch information
skywind3000 authored Oct 30, 2024
2 parents c1e5028 + ef8c22e commit e91372c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions PyStand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,13 @@ const char *init_script =
" sys.stderr = fp\n"
" attached = True\n"
"except Exception as e:\n"
" fp = open(os.devnull, 'w', errors='ignore')\n"
" sys.stdout = fp\n"
" sys.stderr = fp\n"
" attached = False\n"
" try:\n"
" fp = open(os.devnull, 'w', errors='ignore')\n"
" sys.stdout = fp\n"
" sys.stderr = fp\n"
" attached = False\n"
" except:\n"
" pass\n"
#endif
"for n in ['.', 'lib', 'site-packages', 'runtime']:\n"
" test = os.path.abspath(os.path.join(PYSTAND_HOME, n))\n"
Expand Down

0 comments on commit e91372c

Please sign in to comment.