import os

__author__ = 'jakub'


CONFIG_DIR = os.path.expanduser('~/.httpie')

import os
from requests.compat import  is_windows

__author__ = 'jakub'


CONFIG_DIR = (os.path.expanduser('~/.httpie') if not is_windows else
              os.path.expandvars(r'%APPDATA%\\httpie'))

Use %APPDATA% for data on Windows.
Use %APPDATA% for data on Windows.

  import os
+ from requests.compat import  is_windows
  
  __author__ = 'jakub'
  
  
- CONFIG_DIR = os.path.expanduser('~/.httpie')
+ CONFIG_DIR = (os.path.expanduser('~/.httpie') if not is_windows else
+               os.path.expandvars(r'%APPDATA%\\httpie'))
  
Use %APPDATA% for data on Windows.
## Code Before:
import os

__author__ = 'jakub'


CONFIG_DIR = os.path.expanduser('~/.httpie')

## Instruction:
Use %APPDATA% for data on Windows.
## Code After:
import os
from requests.compat import  is_windows

__author__ = 'jakub'


CONFIG_DIR = (os.path.expanduser('~/.httpie') if not is_windows else
              os.path.expandvars(r'%APPDATA%\\httpie'))
