Skip to content

Instantly share code, notes, and snippets.

@itkovian
Created October 28, 2013 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itkovian/7197243 to your computer and use it in GitHub Desktop.
Save itkovian/7197243 to your computer and use it in GitHub Desktop.
dafuq
Code:
_log.debug("prefix = %s, rndm = %s", prefix, rndm)
s = os.path.join(prefix, rndm[0], rndm[0:2], rndm, filename)
_log.debug("resulting string s = %s", s)
Output:
prefix = pubkey, rndm = 9gksLuHlOVGIleV6gjLk
2013-10-28 14:55:49,389 DEBUG import_initial_accounts.accountpage.utils.<module> MainThread resulting string s = /home/ageorges/vsc/django/tmp/test_django_media_root/fake_uploads/ssh-key-import.sPv2Vw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment