Browse files

added substitution variable

  • Loading branch information...
1 parent 359e679 commit 2541a816ab2558747d54e77c0d9a24f2db08ebc6 @laughedelic laughedelic committed Sep 23, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 sublimerepl.py
View
4 sublimerepl.py
@@ -454,6 +454,10 @@ def _subst_for_translate(window):
res["file"] = filename
res["file_path"] = os.path.dirname(filename)
res["file_basename"] = os.path.basename(filename)
+ if window.folders():
+ res["folder"] = window.folders()[0]
+ else:
+ res["folder"] = res["file_path"]
return res
@staticmethod

0 comments on commit 2541a81

Please sign in to comment.