dropbox.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 #----------------------------------------------------------------------
3 #
4 # Name: dropbox.py
5 #
6 # Purpose: Executable script to return file transfer service dropbox
7 # directory for a given file. The same function is available
8 # in python via python module project_utilities.
9 #
10 # Created: 28-Oct-2013 H. Greenlee
11 #
12 # Usage:
13 #
14 # dropbox.py <filename>
15 #
16 #----------------------------------------------------------------------
17 
18 from __future__ import absolute_import
19 from __future__ import print_function
20 import sys
21 import project_utilities
22 
23 if len(sys.argv) <= 1:
24  print('Usage: dropbox.py <filename>')
25  sys.exit(0)
26 
27 filename = sys.argv[1]
28 dir = project_utilities.get_dropbox(filename)
29 print(dir)
30 sys.exit(0)