stefrobb / folders2flickr

Automatically exported from code.google.com/p/folders2flickr
1 stars 0 forks source link

Cannot execute .bat file #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Place path\uploadr.exe into .bat file and execute from command line.

This is also the case when attempting to embed in a python script.  When run 
standalone (double clicking), files are uploaded without issue.  When 
attempting from the bat file the following output is produced:

Traceback (most recent call last):
     File "uploadr.py" line 5, in <module>
     File "tags2set.py" line 12, in <module>
KeyError: 'only_sub_sets'

What is the expected output? What do you see instead?
Successful file upload.

What version of the product are you using? On what operating system?
Windows v1

Please provide any additional information below.

Original issue reported on code.google.com by jovanov...@gmail.com on 17 Dec 2013 at 3:15

GoogleCodeExporter commented 9 years ago
This appears to be the same as issue #21.  If I cd to the correct path before 
execution, there is no issue.  Sorry for the duplicate issue.

Original comment by jovanov...@gmail.com on 17 Dec 2013 at 5:18

GoogleCodeExporter commented 9 years ago
To get python to execute the .exe correctly, I'm using python3 and didn't want 
to attempt converting, use the following commands:

os.chdir(r'drive:\path\to\application')
os.system('uploadr.exe')

Original comment by jovanov...@gmail.com on 17 Dec 2013 at 5:29