Skip to content

Commit

Permalink
fix filenotfounderror
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Oct 29, 2024
1 parent c1e5028 commit ef8c22e
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 ef8c22e

Please sign in to comment.