File: directory_checker_script.py

package info (click to toggle)
python-django-extensions 2.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,396 kB
  • sloc: python: 11,858; makefile: 116
file content (7 lines) | stat: -rw-r--r-- 196 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
# -*- 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