Created
July 3, 2017 08:58
-
-
Save foxmask/4605d1ef7d6d61b70d382a9590b399d4 to your computer and use it in GitHub Desktop.
display a string once in a folder
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
[foxmask: ]$ ls -l toto | |
ls: impossible d'accéder à 'toto': Aucun fichier ou dossier de ce type | |
[foxmask:] $ python | |
Python 3.6.0 (default, Dec 27 2016, 09:15:23) | |
[GCC 4.9.2] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from fabric.api import lcd | |
>>> with lcd('toto'): | |
... print('je suis dans le dossier toto') | |
... | |
je suis dans le dossier toto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment