Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
agent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
7
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6f8ffbbc
authored
Jul 27, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notify: fix os.environ handling
parent
d24ba1e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
notify.py
+5
-1
No files found.
notify.py
View file @
6f8ffbbc
...
...
@@ -104,7 +104,11 @@ def notify(url):
if
display
:
webbrowser
.
open
(
url
,
new
=
2
,
autoraise
=
True
)
finally
:
os
.
environ
[
"DISPLAY"
]
=
olddisplay
if
olddisplay
:
os
.
environ
[
"DISPLAY"
]
=
olddisplay
elif
'DISPLAY'
in
os
.
environ
:
del
os
.
environ
[
"DISPLAY"
]
def
file_already_exists
(
name
,
mode
=
0644
):
...
...
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