Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7f60075

Browse filesBrowse files
gguussandrewferlitsch
authored andcommitted
Makes quickstart more REPL friendly (GoogleCloudPlatform#2354)
1 parent 02998e8 commit 7f60075
Copy full SHA for 7f60075

File tree

Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed

‎vision/cloud-client/quickstart/quickstart.py

Copy file name to clipboardExpand all lines: vision/cloud-client/quickstart/quickstart.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ def run_quickstart():
3232
# [END vision_python_migration_client]
3333

3434
# The name of the image file to annotate
35-
file_name = os.path.join(
36-
os.path.dirname(__file__),
37-
'resources/wakeupcat.jpg')
35+
file_name = os.path.abspath('resources/wakeupcat.jpg')
3836

3937
# Loads the image into memory
4038
with io.open(file_name, 'rb') as image_file:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.