On devine l'emplacement du dépôt.
darcs-hash:20071209165750-af139-02b01e2ea60cb6fc1828843e5989f9a7aad2338f.gz
This commit is contained in:
parent
5b445c1a89
commit
6b350dca80
1 changed files with 6 additions and 0 deletions
|
@ -189,6 +189,12 @@ if __name__ == "__main__":
|
|||
|
||||
if repo:
|
||||
os.chdir(repo)
|
||||
else:
|
||||
while not os.path.exists('_darcs') and os.getcwd() != '/':
|
||||
os.chdir('..')
|
||||
if not os.path.exists('_darcs') and os.getcwd() == '/':
|
||||
cprint("Pas de dépôt darcs trouvé")
|
||||
sys.exit(1)
|
||||
if not template and os.path.exists(TEMPLATE_FILE):
|
||||
template = TEMPLATE_FILE
|
||||
if template:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue