Comments (5)
I will look into this today. From what you've sent me, it should be working.
from android-imagesweep.
I will retry later, hoping in more luck ;)
from android-imagesweep.
You could always try hardcoding the project path. First make a backup of your project (just to be safe). Then remove lines 72 - 74 (where it does the parameter checks). Finally set rootDirectory = "project_path" instead of sys.argv[1].
from android-imagesweep.
Hi joshruesch,
I'll try now this way and I'll tell you the result.
Thanks.
EDIT
I've done as you told me, but now I get this error:
G:>python Download\ImageSweep.py
File "Download\ImageSweep.py", line 93
print ""
^
SyntaxError: invalid syntax
Is the sintax correct?
I changed the ImageSweepy.py file in this way:
[...]
//Make sure they passed in a project source directory.
// if not len(sys.argv) == 2: <----- line commented
// print 'Usage: "python ImageSweep.py project_src_directory"' <----- line commented
// quit() <----- line commented
rootDirectory = "G:\Projects\myproject_root_directory" #sys.argv[1]
resDirectory = rootDirectory
[...]
PS: I'm trying on Windows 8, and I noticed that in the script you've wrote this
#Naive method to determine if a directory is an android /res folder.
def isResourceRoot(directory):
return (
(os.path.exists(directory+"/drawable")) or
(os.path.exists(directory+"/drawable-ldpi")) or
(os.path.exists(directory+"/drawable-mdpi")) or
(os.path.exists(directory+"/drawable-hdpi")) or
(os.path.exists(directory+"/drawable-xhdpi")) or
(os.path.exists(directory+"/drawable-xxhdpi")) or
(os.path.exists(directory+"/drawable-xxxhdpi")))
This is the Unix format to reference file/directory of the file system on Terminal. Maybe it could be this reason why I get errors?
from android-imagesweep.
Closing issues in preparation to archive this project.
from android-imagesweep.
Related Issues (3)
- backup capability HOT 2
- mipmap-* folders not supported HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-imagesweep.