projects
/
mw
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PEP 8 and code cleanup
[mw]
/
src
/
mw
/
metadir.py
diff --git
a/src/mw/metadir.py
b/src/mw/metadir.py
index 67e0b0950a58b95c20cf8b11542c0a4346e1234c..643024ecc9e7d3d8831360b749e8a615ec9800f2 100644
(file)
--- a/
src/mw/metadir.py
+++ b/
src/mw/metadir.py
@@
-20,9
+20,10
@@
import ConfigParser
import json
import os
import sys
import json
import os
import sys
-import time
+
class Metadir(object):
class Metadir(object):
+
def __init__(self):
self.me = os.path.basename(sys.argv[0])
root = os.getcwd()
def __init__(self):
self.me = os.path.basename(sys.argv[0])
root = os.getcwd()
@@
-30,7
+31,7
@@
class Metadir(object):
if '.mw' in os.listdir(root):
self.root = root
break
if '.mw' in os.listdir(root):
self.root = root
break
- (head, tail) = os.path.split(root)
+ head = os.path.split(root)[0]
if head == root:
self.root = os.getcwd()
break
if head == root:
self.root = os.getcwd()
break
Benjamin Mako Hill
||
Want to submit a patch?