Skip to content

Commit

Permalink
Did not seem to pick up directories from source - fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed May 16, 2012
1 parent 1522d52 commit b09c1a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion template2/sync.run.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@ def errex(message):
print "start parsing the source directory"
originalConf = os.path.join(original, '.moa', 'config')

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')

print sourcelist
#make sure we're not copying the file to itself
sourcelist.remove(original)

Expand Down

0 comments on commit b09c1a8

Please sign in to comment.