Tagged Questions
1
vote
1answer
20 views
Scene object selective export using Blender Python API 2.6
I am writing a custom export script to parse all the objects in a blender file, filter them by name, then check to make sure that they meet some specific criteria.
I am using Blender 2.68a. I've ...
9
votes
6answers
1k views
Is there a way to make python become interactive in the middle of a script?
I'd like to do something like:
do lots of stuff to prepare a good environement
become_interactive
#wait for Ctrl-D
automatically clean up
Is it possible with python?If not, do you see another way ...
4
votes
2answers
60 views
Batch editing of csv files with Python
I need to edit several csv files. Actually, most of the files are fine as they are, it's just the last (41st) column that needs to be changed. For every occurrence of a particular string in that ...
0
votes
1answer
30 views
Global Variables between scripts
I have a python project with few scripts run by .sh shell files.
I have a config file which defines a dictionary to be used across scripts.
config.py
name_dict = dict()
file1.py
from config ...
1
vote
1answer
65 views
shebang env preferred python version
I have some python-2.x scripts which I copy between different systems, Debian and Arch linux.
Debian install python as '/usr/bin/python' while Arch installs it as '/usr/bin/python2'.
A problem is that ...
1
vote
2answers
85 views
find biggest interval in list of time stamps ( Perl preferred )
I'd accept any of the interpreted languages Perl, Python, Bash, etc.. but I'd prefer Perl because it is what I am trying to learn. I have a list of timestamps like:
17:31:16
17:31:16
17:31:18
...
0
votes
4answers
1k views
Validate IP address from list
I would like to validate IP addresses from a list that may contain incorrectly formated addresses or other garbage. If the field does not contain a properly formated field, simply continue ignoring ...
9
votes
6answers
11k views
How can I launch an instance of an application using Python?
I am creating a Python script where it does a bunch of tasks and one of those tasks is to launch and open an instance of Excel. What is the ideal way of accomplishing that in my script?
2
votes
4answers
919 views
Do a search-and-replace across all files in a folder through python?
I'd like to learn to use python as a command line scripting replacement. I spent some time with python in the past but it's been a while. This seems to be within the scope of it.
I have several ...
2
votes
4answers
2k views
How to script Firefox or any Mozilla based browser
I need to automate something like this:
Open an URL
Wait until the page is fully loaded
Save COMPLETE page as... (I can provide a name).
I saw https://developer.mozilla.org/en/Command_Line_Options ...
0
votes
0answers
28 views
Tracing IDA route python script
I am very new doing IDA scripts so I want to start doing something very easy. I just want to log all the instructions that has been accesed in a specific time period.
I have a binary that I am ...
0
votes
1answer
53 views
Best browser to embed an interpreter in [closed]
I have a decision to make. A few of them actually, and as the stack overflow community has never failed me before I am going to trust it once more.
I've always found the idea of running another ...
0
votes
1answer
81 views
Abaqus Scripting: Finding a varying number of faces using findat
I'm trying to run a parametric study using Abaqus scripting. It's going to create a shell geometry and then partition it a varying number of times depending on how many times I specify.
My problem ...
0
votes
4answers
1k views
How to write Python or PHP script to edit this XML file?
I would like to write a script which will edit multiple XML files, I would like to have a script which will do the following;
Find tag "Preload" delete entire
tag, find "Preload=?sometext?" and ...
0
votes
0answers
32 views
Scapy error on OSX Lion [duplicate]
I've been trying to use Python Scapy on my Macbook. I've installed all the modules it said I needed, but I still get the error below. I know it can be installed via MacPorts, but I use Homebrew. I ...