summaryrefslogtreecommitdiffstats
path: root/Lib/profile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/profile.py')
-rwxr-xr-xLib/profile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/profile.py b/Lib/profile.py
index d1a869a..4eb86a8 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -598,9 +598,9 @@ def main():
sys.exit(2)
(options, args) = parser.parse_args()
- sys.argv[:] = args
- if (len(sys.argv) > 0):
+ if (len(args) > 0):
+ sys.argv[:] = args
sys.path.insert(0, os.path.dirname(sys.argv[0]))
fp = open(sys.argv[0])
try: