Skip to content

Instantly share code, notes, and snippets.

@wickchucked
Created March 13, 2013 16:16
Show Gist options
  • Save wickchucked/5153706 to your computer and use it in GitHub Desktop.
Save wickchucked/5153706 to your computer and use it in GitHub Desktop.
path = self.view.file_name()
current_user = os.environ.get("USERNAME")
directory = os.path.dirname(path)
user_pos = directory.find(current_user).upper()
print "User Pos:" + user_pos
base_dir = directory(user_pos:)
file_name = os.path.basename(path)
directory = base_dir + "\BisCmd.bis"
print "Directory:" + directory
output = directtory + "|" + file_name + "|" + text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment