Skip to content

Commit

Permalink
adds extra arch upgrade scripts. adds whichpy for python module locat…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
Troy Melhase committed Apr 26, 2010
1 parent b2acbae commit 19d4698
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions catpy
@@ -0,0 +1,3 @@
#!/bin/bash

whichpy "$1" | xargs cat
3 changes: 3 additions & 0 deletions pacman-upgrade-aur
@@ -0,0 +1,3 @@
#!/bin/bash
yaourt -Syu --aur "$@"

3 changes: 3 additions & 0 deletions pacman-upgrade-dev
@@ -0,0 +1,3 @@
#!/bin/bash
yaourt -Syu --devel "$@"

File renamed without changes.
15 changes: 15 additions & 0 deletions whichpy
@@ -0,0 +1,15 @@
#!/bin/bash

python -c "
import sys
try:
import $1
fn = $1.__file__
if fn.endswith('.pyc') or fn.endswith('.pyo'):
fn = fn.rpartition('.py')[0] + '.py'
print fn
sys.exit(0)
except (Exception, ), exc:
print 'Exception: ', exc
sys.exit(1)
"

0 comments on commit 19d4698

Please sign in to comment.