Skip to content

Instantly share code, notes, and snippets.

@npinto
Created October 17, 2012 08:33
Show Gist options
  • Select an option

  • Save npinto/3904425 to your computer and use it in GitHub Desktop.

Select an option

Save npinto/3904425 to your computer and use it in GitHub Desktop.

Revisions

  1. npinto revised this gist Oct 18, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions __location__.py
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,3 @@
    import os
    from os import path
    __location__ = path.realpath(path.join(os.getcwd(), path.dirname(__file__)))
  2. npinto revised this gist Oct 18, 2012. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion __location__.py
    Original file line number Diff line number Diff line change
    @@ -1 +1,2 @@
    __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
    from os import path
    __location__ = path.realpath(path.join(os.getcwd(), path.dirname(__file__)))
  3. npinto created this gist Oct 17, 2012.
    1 change: 1 addition & 0 deletions __location__.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))