File: print_cwd_basename.py

package info (click to toggle)
gyp 0.1%2B20200513gitcaa6002-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,236 kB
  • sloc: python: 29,408; ansic: 1,087; cpp: 855; sh: 302; lisp: 258; objc: 234; asm: 33; makefile: 10
file content (11 lines) | stat: -rwxr-xr-x 277 bytes parent folder | download | duplicates (30)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python

# Copyright 2014 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from __future__ import print_function
import os
import os.path

print(os.path.basename(os.getcwd()))