Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
e807472e
Commit
e807472e
authored
Jul 25, 2014
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store output in user's home directory when frozen
parent
1b0776ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
blink
bin/blink
+6
-2
__init__.py
blink/__init__.py
+7
-0
No files found.
bin/blink
View file @
e807472e
...
...
@@ -21,8 +21,12 @@ if os.path.basename(script_dir)=='bin' and os.path.exists(os.path.join(parent_di
if
getattr
(
sys
,
'frozen'
,
False
):
# Override stdout and stderr, save output to a file
sys
.
stdout
=
sys
.
stderr
=
open
(
sys
.
executable
+
'.log'
,
'a'
)
try
:
from
cStringIO
import
StringIO
except
ImportError
:
from
StringIO
import
StringIO
# Override stdout and stderr, save output to a StringIO object, then to a file
sys
.
stdout
=
sys
.
stderr
=
StringIO
()
if
__name__
==
'__main__'
:
...
...
blink/__init__.py
View file @
e807472e
...
...
@@ -56,6 +56,13 @@ from blink.update import UpdateManager
from
blink.util
import
QSingleton
,
run_in_gui_thread
if
getattr
(
sys
,
'frozen'
,
False
):
output
=
sys
.
stdout
sys
.
stdout
=
sys
.
stderr
=
open
(
ApplicationData
.
get
(
'logs/output.log'
),
'a'
)
sys
.
stdout
.
write
(
output
.
getvalue
())
output
.
close
()
class
IPAddressMonitor
(
object
):
"""
An object which monitors the IP address used for the default route of the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment