Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
OpenEdx
django-pipeline
Commits
e9b7150b
Commit
e9b7150b
authored
Mar 13, 2017
by
Tom 'Biwaa' Riat
Committed by
GitHub
Mar 13, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #612 from wismill/master
Replace os.rename with shutil.move
parents
38f9609f
b1e7b3a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
pipeline/compilers/__init__.py
+2
-1
No files found.
pipeline/compilers/__init__.py
View file @
e9b7150b
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
import
os
import
os
import
shutil
import
subprocess
import
subprocess
from
tempfile
import
NamedTemporaryFile
from
tempfile
import
NamedTemporaryFile
...
@@ -146,6 +147,6 @@ class SubProcessCompiler(CompilerBase):
...
@@ -146,6 +147,6 @@ class SubProcessCompiler(CompilerBase):
# Decide what to do with captured stdout.
# Decide what to do with captured stdout.
if
stdout
:
if
stdout
:
if
stdout_captured
:
if
stdout_captured
:
os
.
renam
e
(
stdout
.
name
,
os
.
path
.
join
(
cwd
or
os
.
curdir
,
stdout_captured
))
shutil
.
mov
e
(
stdout
.
name
,
os
.
path
.
join
(
cwd
or
os
.
curdir
,
stdout_captured
))
else
:
else
:
os
.
remove
(
stdout
.
name
)
os
.
remove
(
stdout
.
name
)
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