Skip to content

Commit

Permalink
Check to make sure path isn't empty. Caused problems when doing somet…
Browse files Browse the repository at this point in the history
…hing in the current directory
  • Loading branch information
Rick Wilkinson committed Jun 2, 2008
1 parent 5ef4245 commit ebe815f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FWCore/ParameterSet/python/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
if os.path.exists(newName) and not overwrite:
continue
newPath = os.path.dirname(newName)
if not os.path.exists(newPath):
if newPath != '' and not os.path.exists(newPath):
os.makedirs(newPath)
f = open(newName, 'w')
try:
Expand Down

0 comments on commit ebe815f

Please sign in to comment.