This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import shutil | |
import os | |
import sys | |
import pickle | |
from dropbox.rest import ErrorResponse | |
STATE_FILE = '.dropbox_state' | |
REMOTE_ROOT_PATH = '/Apps/my-pythonista-app' # sync root in dropbox where code is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun using-azerty? () | |
(condition-case nil | |
(let ((buffer (get-buffer-create "*using-azerty?*")) | |
return) | |
(set-buffer buffer) | |
(erase-buffer) | |
(call-process-shell-command "setxkbmap" nil buffer nil "-print") | |
(goto-char (point-min)) | |
(setq return (search-forward "azerty" nil t)) | |
(kill-buffer buffer) |