about summary refs log tree commit diff stats
path: root/example/disasm/full.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2017-04-24 18:16:47 +0200
committerAjax <commial@gmail.com>2017-04-24 18:16:47 +0200
commit9c8869368ccc7ab6d9cf2edda4739d479056df17 (patch)
treef984ba7807e5b1699a46c64019fe618f41c98cde /example/disasm/full.py
parent7ce0b4f473b2830ccc4d720455ba62c438e973c0 (diff)
downloadmiasm-9c8869368ccc7ab6d9cf2edda4739d479056df17.tar.gz
miasm-9c8869368ccc7ab6d9cf2edda4739d479056df17.zip
Remove PYTHONSTARTUP in end-user scripts
Diffstat (limited to 'example/disasm/full.py')
-rw-r--r--example/disasm/full.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/example/disasm/full.py b/example/disasm/full.py
index 33903282..3bfb7658 100644
--- a/example/disasm/full.py
+++ b/example/disasm/full.py
@@ -1,4 +1,3 @@
-import os
 import logging
 from argparse import ArgumentParser
 from pdb import pm
@@ -17,10 +16,6 @@ console_handler.setFormatter(logging.Formatter("%(levelname)-5s: %(message)s"))
 log.addHandler(console_handler)
 log.setLevel(logging.INFO)
 
-filename = os.environ.get('PYTHONSTARTUP')
-if filename and os.path.isfile(filename):
-    execfile(filename)
-
 
 parser = ArgumentParser("Disassemble a binary")
 parser.add_argument('filename', help="File to disassemble")