Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
3a44c01b
Commit
3a44c01b
authored
Aug 12, 2007
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kill execfile(), use exec() instead
parent
913423ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
core.py
core.py
+2
-2
No files found.
core.py
View file @
3a44c01b
...
...
@@ -179,7 +179,7 @@ def run_setup (script_name, script_args=None, stop_after="run"):
keyword args from 'script' to 'setup()', or the contents of the
config files or command-line.
'script_name' is a file that will be r
un with 'execfile
()';
'script_name' is a file that will be r
ead and run with 'exec
()';
'sys.argv[0]' will be replaced with 'script' for the duration of the
call. 'script_args' is a list of strings; if supplied,
'sys.argv[1:]' will be replaced by 'script_args' for the duration of
...
...
@@ -217,7 +217,7 @@ def run_setup (script_name, script_args=None, stop_after="run"):
sys
.
argv
[
0
]
=
script_name
if
script_args
is
not
None
:
sys
.
argv
[
1
:]
=
script_args
exec
file
(
script_name
,
g
,
l
)
exec
(
open
(
script_name
).
read
()
,
g
,
l
)
finally
:
sys
.
argv
=
save_argv
_setup_stop_after
=
None
...
...
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