Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Re-structure package

  • Loading branch information...
commit 0df8b20eb240846866603d184166345ebe1cce40 1 parent 6e1fd3a
@ahal authored
View
2  MANIFEST.in
@@ -0,0 +1,2 @@
+include README.md
+include mozconfigwrapper/template
View
0  README.md
No changes.
View
2  mozconfigwrapper.sh
@@ -30,7 +30,7 @@ function mkmozconfig {
typeset name="$1"
mozconfig="$BUILDWITH_HOME/$name"
- python -c "from mozconfig import mkmozconfig; mkmozconfig('$name')"
+ python -c "from mozconfigwrapper import mkmozconfig; mkmozconfig('$name')"
echo "Created: $mozconfig"
buildwith $name
}
View
1  mozconfigwrapper/__init__.py
@@ -0,0 +1 @@
+from mozconfig import *
View
14 mozconfig.py → mozconfigwrapper/mozconfig.py
@@ -45,20 +45,26 @@ def mozconfig(arguments=sys.argv[1:]):
help="opens the mozconfig for editing"),
opt, args = parser.parse_args(arguments)
- current = os.getenv('MOZCONFIG')
+ current = os.getenv('MOZCONFIG', '')
if not opt.ls and not opt.edit:
- print current
+ if current == '':
+ print "No mozconfig activated"
+ else:
+ print current
return
if opt.ls:
for f in os.listdir(mozconfigdir):
if f != 'template':
- if current not in [None, ''] and f == os.path.basename(current):
+ if current != '' and f == os.path.basename(current):
f += "*"
print f
if opt.edit:
- _edit(current)
+ if current == '':
+ print "No mozconfig activated"
+ else:
+ _edit(current)
View
0  template → mozconfigwrapper/template
File renamed without changes
View
6 setup.py
@@ -58,12 +58,12 @@
license='MPL 1.1/GPL 2.0/LGPL 2.1',
py_modules=['mozconfig'],
scripts=['mozconfigwrapper.sh'],
- packages=find_packages(exclude=['legacy']),
- data_files=[('', ['template'])],
+ packages=find_packages(),
+ include_package_data=True,
zip_safe=False,
entry_points="""
[console_scripts]
- mozconfig = mozconfig:mozconfig
+ mozconfig = mozconfigwrapper:mozconfig
""",
platforms =['Any'],
classifiers=['Development Status :: 4 - Beta',
Please sign in to comment.
Something went wrong with that request. Please try again.