Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Jun 9, 2012
1 parent 3968194 commit 14612b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template2/sync.run.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def errex(message):
if ignore:
print "ignoring", ignore

if source:
if not source:
print "source directory is not defined"
SOURCE=False
elif os.path.isdir(source):
Expand Down Expand Up @@ -86,7 +86,7 @@ def errex(message):

if SOURCE:
print "start parsing the source directory"
sourcelist = [x for x in os.listdir(source) if os.path.isdir(x)]
sourcelist = [x for x in os.listdir(source) if os.path.isdir(os.path.join(source, x))]
if os.path.exists('_ref'):
sourcelist.append('_ref')

Expand Down

0 comments on commit 14612b2

Please sign in to comment.