Browse Source

Rename copy.py to avoid stupid Python conflicts

Any other module (in this case, nilmdb -> datetime_tz -> pytz -> gettext)
that does an "import copy" would pull in the copy.py, if it's in the
current working directory.  Python is dumb...
tags/nilmtools-0.5
Jim Paris 8 years ago
parent
commit
3e78da12dc
3 changed files with 3 additions and 1 deletions
  1. +1
    -1
      setup.py
  2. +0
    -0
      src/copy_.py
  3. +2
    -0
      src/filter.py

+ 1
- 1
setup.py View File

@@ -70,7 +70,7 @@ setup(name='nilmtools',
'console_scripts': [
'nilm-decimate = nilmtools.decimate:main',
'nilm-insert = nilmtools.insert:main',
'nilm-copy = nilmtools.copy:main',
'nilm-copy = nilmtools.copy_:main',
],
},
zip_safe = False,


src/copy.py → src/copy_.py View File


+ 2
- 0
src/filter.py View File

@@ -1,5 +1,7 @@
#!/usr/bin/python

from __future__ import absolute_import

import nilmdb.client
from nilmdb.utils.printf import *
from nilmdb.utils.time import (parse_time, timestamp_to_human,


Loading…
Cancel
Save