skip to main | skip to sidebar

CodeCereal

Jan 9, 2014

Python cookbook: get the file dir path

import os
os.path.dirname(os.path.abspath(__file__))
-> Unknown at 11:54 AM
Labels: dir, os, python

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Who am I

Unknown
View my complete profile

Blog Archive

  • ▼  2014 (4)
    • ▼  January (4)
      • PIL -> Pillow
      • Reload and unload modules in Python
      • Python cookbook: get the file dir path
      • Regex like operators for DCG
  • ►  2013 (6)
    • ►  December (2)
    • ►  October (1)
    • ►  August (1)
    • ►  June (1)
    • ►  May (1)
  • ►  2012 (9)
    • ►  December (1)
    • ►  November (2)
    • ►  August (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2011 (13)
    • ►  October (1)
    • ►  July (3)
    • ►  June (5)
    • ►  May (4)
  • ►  2010 (7)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  April (3)
    • ►  February (1)