SourceForge logo
SourceForge logo
Menu

[matplotlib-devel] Executable scripts for examples

From: Steve C. <ste...@ya...> - 2004年04月21日 12:15:06
John,
I'd like to request that the matplotlib/examples are made into
executable scripts by adding 
#!/usr/bin/env python
as first line for all examples. This benefits Unix users and has no
effect (as far as I know) for non-Unix users.
It can be done for all scripts from the command line with a 'sh' style
shell, using something like:
cd examples
echo "#!/usr/bin/env python" >/tmp/header
for file in *.py; do
 mv $file ${file}.old
 cat /tmp/header ${file}.old > $file
done
# check the new files look OK and delete *.old
Regards
Steve

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /