File: directory_checker_script.py

package info (click to toggle)
python-django-extensions 4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,812 kB
  • sloc: python: 18,601; javascript: 7,354; makefile: 108; xml: 17
file content (9 lines) | stat: -rw-r--r-- 210 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
# -*- coding: utf-8 -*-
import os


def run(*args):
    print("Script called from: %s" % os.getcwd())
    os.chdir(
        os.path.dirname(os.getcwd())
    )  # to test is NONE option freezing start directory