Skip to content

Commit

Permalink
Implement "qsnake develop"
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed May 9, 2011
1 parent f52c30b commit 2f95f88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spkg/base/qsnake_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ def main():
elif arg == "list":
command_list()
return
elif arg == "develop":
command_develop()
return
elif arg == "test":
run_tests()
return
Expand Down Expand Up @@ -727,6 +730,11 @@ def command_list():
print "List of installed packages:"
cmd("cd $QSNAKE_ROOT; ls spkg/installed")

def command_develop():
print "Adding the current directory into qsnake.pth file:"
cmd("echo $CUR >> $SPKG_LOCAL/lib/python/site-packages/qsnake.pth",
echo=True)

def get_system_packages():
"""get a dict by platform of packages provided by the system."""
d = {}
Expand Down

0 comments on commit 2f95f88

Please sign in to comment.