Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go123
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go123
Commits
9cfe4f52
Commit
9cfe4f52
authored
Dec 01, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tracing/pyruntraced: pymain changed signature to accept prog in argv[0]
See
nexedi/pygolang@21756bd3
.
parent
96046edf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tracing/cmd/pyruntraced
tracing/cmd/pyruntraced
+3
-2
No files found.
tracing/cmd/pyruntraced
View file @
9cfe4f52
#!/usr/bin/env python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# Copyright (C) 2018-20
19
Nexedi SA and Contributors.
# Copyright (C) 2018-20
20
Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
# Kirill Smelkov <kirr@nexedi.com>
#
#
# This program is free software: you can Use, Study, Modify and Redistribute
# This program is free software: you can Use, Study, Modify and Redistribute
...
@@ -249,6 +249,7 @@ def die(msg):
...
@@ -249,6 +249,7 @@ def die(msg):
# main mimics `python ...`,
# main mimics `python ...`,
# but with tracepoints already attached.
# but with tracepoints already attached.
def
main
():
def
main
():
prog
=
sys
.
argv
[
0
]
argv
=
sys
.
argv
[
1
:]
argv
=
sys
.
argv
[
1
:]
if
not
argv
:
if
not
argv
:
usage
(
sys
.
stderr
)
usage
(
sys
.
stderr
)
...
@@ -290,7 +291,7 @@ def main():
...
@@ -290,7 +291,7 @@ def main():
execfile
(
t
,
globals
())
execfile
(
t
,
globals
())
# now mimic `python ...`
# now mimic `python ...`
pymain
(
argv
)
pymain
(
[
prog
]
+
argv
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
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