Commit 35e76827 authored by Florian Bourse's avatar Florian Bourse

Finishing python egg.

parent 96083bc1
"""Module to run every scripts in a folder"""
#!/usr/bin/env python
"""Module to run every scripts in a folder."""
import os
import os.path
import sys
import stat
def runparts(directory):
"""run every scripts in 'directory' whose names doesn't start
with '.' or '_' in alphabetical order"""
"""Runs every scripts in 'directory' whose names doesn't start
with '.' or '_' in alphabetical order."""
exe = (stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
scripts = sorted(x for x in os.listdir(directory)
if x[0] not in ('.', '_'))
......@@ -16,7 +17,7 @@ def runparts(directory):
os.system(path)
def main():
"""runs runparts on each argument given on command-line"""
"""runs runparts on each argument given on command-line."""
for folder in sys.argv[1:]:
runparts(folder)
......
......@@ -24,7 +24,7 @@ setup(name = 'slapos.android',
keywords = 'android battery events',
author = 'Florian Bourse',
author_email = 'florian.bourse@tiolive.com',
url = '',
url = 'http://git.erp5.org/repos/slapos.android.git',
license = 'GPL v2',
packages = find_packages(),
include_package_data = True,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment