Skip to content

Commit

Permalink
switching to temporary directory instead of home directory. this shou…
Browse files Browse the repository at this point in the history
…ld close #1
  • Loading branch information
Srinivas Devaki committed Sep 22, 2016
1 parent 590ce6c commit cb939b4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# singlefile

**import from web.** share your snippets and import them from web directly.

currently only [gist.github.com](https://gist.github.com) is supported

```Python
from singlefile.gist.gist2eafebd9fdcb1e39188aeb1e3627e683.pingpong import main
print(main())
```

#### TODO
* pastebin support
* gitlab snippets support
* raw link support through some url shortener service
3 changes: 2 additions & 1 deletion singlefile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
import json
import shutil
import atexit
import tempfile

import requests

BASE_MODULES_DIR = os.path.join(os.path.expanduser('~'), '.singlefile')
BASE_MODULES_DIR = tempfile.mkdtemp(prefix='singlefile')


@atexit.register
Expand Down

0 comments on commit cb939b4

Please sign in to comment.